Guild icon
Quill OS
Development / porting / Kobo Nia model A (N306A)
Avatar
@Szybet , here's a porting thread to get your Nia set up properly. I usually don't have much time for InkBox except on week-ends, but you can checkout the Libra H2O porting thread to have an idea of what will need to be done.
4:34 AM
I do not know if @andi has done anything with mx6ull yet (Nia's SoC), but it sure could be interesting to have mainline there too, if it's not too much work.
Avatar
I have already the backup of the SD card
8:26 AM
i dont understand the openssl thing that was there talked about (edited)
8:26 AM
i will get to u-boot today
8:27 AM
and it would be great to make a 5.x kernel work
Avatar
https://github.com/Kobo-InkBox/kernel/blob/master/initrd/common/overlay-mount Maybe look here, it's how the rootfs is verified and mounted at boot (it's a squashfs archive)
Kernel sources for InkBox OS. Contribute to Kobo-InkBox/kernel development by creating an account on GitHub.
Avatar
hmm i understand the script
3:05 PM
but i dont know how it could help
Avatar
How what could help?
Avatar
Avatar
tux-linux
https://github.com/Kobo-InkBox/kernel/blob/master/initrd/common/overlay-mount Maybe look here, it's how the rootfs is verified and mounted at boot (it's a squashfs archive)
this
Avatar
lets focus on the kernel / bootloader first?
4:20 PM
or there doesnt need to be anything changed in them?
Avatar
Um yeah
5:02 PM
U-Boot kernel sector Change it to 81920 And change kernel load size to 18432
Avatar
hmm why is it needed to change?
5:03 PM
so i need to compile u-boot?
5:06 PM
and, is it all?
Avatar
Avatar
Szybet
hmm why is it needed to change?
Kernel is too big
Avatar
why is it too big?
Avatar
whot would change that it would be big?
Avatar
It can't fit in the default unpartitioned space
5:19 PM
Initrd is embedded
Avatar
it would be better to understand if you would provide the full sd card partition / place plan
Avatar
Download factory image and look
5:21 PM
23.163.0.39
Avatar
where is it
Avatar
and, maybe we try to update the kernel to a newer version?
Avatar
i will look at it
Avatar
how do i generate the u-boot config?
7:04 PM
or even get the board name
Avatar
Avatar
Szybet
it would be better to understand if you would provide the full sd card partition / place plan
inkbox-1.7-n905b: DOS/MBR boot sector; partition 1 : ID=0x83, start-CHS (0x2,140,10), end-CHS (0x4,247,51), startsector 40959, 38913 sectors; partition 2 : ID=0x83, start-CHS (0x6,127,58), end-CHS (0x46,61,55), startsector 104448, 1024000 sectors; partition 3 : ID=0x83, start-CHS (0x46,61,56), end-CHS (0x56,142,56), startsector 1128448, 262144 sectors; partition 4 : ID=0x83, start-CHS (0x56,142,57), end-CHS (0x1d5,242,17), startsector 1390592, 6159156 sectors
7:28 PM
i used file to show this
7:28 PM
do i need to mount this, or use another app to open this?
7:29 PM
the easiest and fastest way would be if you shared resources / links how to do those steps
7:30 PM
maybe write a guide / documentation?
Avatar
fdisk img
7:38 PM
Or xzcat img > InkBox.img
7:39 PM
losetup -P -f --show InkBox.img
7:39 PM
fdisk -l /dev/loop<x>
Avatar
Avatar
Szybet
how do i generate the u-boot config?
I don't know the kernel sources or U-Boot sources for this model, but look in include/configs for U-Boot
7:46 PM
Maybe imx_v7_defconfig
Avatar
Avatar
tux-linux
losetup -P -f --show InkBox.img
thats whot i thought, that i need to mount it
Avatar
Avatar
tux-linux
I don't know the kernel sources or U-Boot sources for this model, but look in include/configs for U-Boot
ok i will have a look at it
👍 1
Avatar
Maybe you can set up the emulator in a Debian VM to have an idea of what you will be dealing with (edited)
12:20 AM
InkBox OS emulator. Contribute to Kobo-InkBox/emu development by creating an account on GitHub.
1:19 PM
1:19 PM
this looks promising
Avatar
What filename?
Avatar
auto.conf
Avatar
Doubt it will work
Avatar
Avatar
tux-linux
Maybe imx_v7_defconfig
it isin't there
5:55 PM
but i have a idea
5:55 PM
the cpu is mx6ull
Avatar
yes
Avatar
% ls | grep mx6ull mx6ull_14x14_ddr3_arm2_defconfig mx6ull_14x14_ddr3_arm2_emmc_defconfig mx6ull_14x14_ddr3_arm2_epdc_defconfig mx6ull_14x14_ddr3_arm2_nand_defconfig mx6ull_14x14_ddr3_arm2_qspi1_defconfig mx6ull_14x14_ddr3_arm2_spinor_defconfig mx6ull_14x14_ddr3_arm2_tsc_defconfig mx6ull_14x14_evk_defconfig mx6ull_14x14_evk_emmc_defconfig mx6ull_14x14_evk_nand_defconfig mx6ull_14x14_evk_qspi1_defconfig mx6ull_9x9_evk_defconfig mx6ull_9x9_evk_qspi1_defconfig mx6ull_ntx_lpddr2_256m_defconfig mx6ull_ntx_lpddr2_256m_mfg_defconfig mx6ull_ntx_lpddr2_512m_defconfig mx6ull_ntx_lpddr3_512m_defconfig mx6ull_ntx_lpddr3_512m_mfg_defconfig
Avatar
How much RAM do you have in the Nia?
Avatar
wait, i will check
5:56 PM
RAMType='LPDDR2
5:57 PM
RamSize='256MB'
5:57 PM
so its only mx6ull_ntx_lpddr2_256m_defconfig mx6ull_ntx_lpddr2_256m_mfg_defconfig
5:58 PM
whot does mfg mean
Avatar
Kobo still has done the mistake to put 256MB of RAM in a 2 years old device
5:58 PM
Don't use mfg
Avatar
whot does mfg mean
Avatar
mfg=manufacturing I guess
5:58 PM
I never use them
Avatar
Avatar
tux-linux
Kobo still has done the mistake to put 256MB of RAM in a 2 years old device
you know, nia is cheap
Avatar
Just take mx6ull_ntx_lpddr2_256m_defconfig
Avatar
and why would it need more?
Avatar
I do know
Avatar
its a ereader
Avatar
Well, Elipsa (2021) has 1G, Glo HD (2015) has 512M, Libra (2019) has 512M, Clara (2018) has 512M, so
5:59 PM
Also there is a substantial speed increase with InkBox devices which have 512M of RAM (edited)
5:59 PM
But anyways, end of the rant
Avatar
nia is just cheap
6:02 PM
it just writted it to the config?
6:02 PM
6:02 PM
now i need to select whot i need? ohn o...
Avatar
Yes
6:02 PM
No
Avatar
whot no
Avatar
Remove the mx6ull bit
Avatar
Avatar
tux-linux
Remove the mx6ull bit
?
Avatar
And it will compile u-boot.bin
6:03 PM
make -j6 CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm
6:03 PM
hahahaha...
Avatar
Try with a different compiler
6:04 PM
I cannot help you on those errors
6:04 PM
But you can build this code somehow
6:04 PM
Sometimes just changing compiler will solve the issue
Avatar
Avatar
tux-linux
Try with a different compiler
like which one? i have the 4.9
Avatar
Avatar
tux-linux
Sometimes just changing compiler will solve the issue
i dont think changing to a older one will help
Avatar
Did you clone the InkBox kernel repo?
Avatar
Avatar
Szybet
i dont think changing to a older one will help
it did for me
6:05 PM
changing to a newer one
Avatar
im using the compiler from kobo reader repo
Avatar
Ok; clone InkBox kernel repo
6:05 PM
Kernel sources for InkBox OS. Contribute to Kobo-InkBox/kernel development by creating an account on GitHub.
6:05 PM
And use arm-nickel-linux-gnueabihf- If it doesn't work, try armv7l-linux-musleabihf-
6:06 PM
Or maybe you will have more luck with bootstrapping this one https://github.com/koreader/koxtoolchain
Build script for various toolchains used by KOReader - GitHub - koreader/koxtoolchain: Build script for various toolchains used by KOReader
Avatar
i will
👍 1
Avatar
If you really aren't lucky, I'll try to compile it myself
6:08 PM
Sometimes there are Unexplainable Build Errors™️ that are solved just by compiling on another machine or distro
Avatar
C and other c are something shitty
6:27 PM
6:27 PM
but i got it
Avatar
Nice!!
6:28 PM
What toolchain?
Avatar
Avatar
tux-linux
What toolchain?
mine, 4.9
6:28 PM
yours doesn't worked
6:28 PM
but the problem was a package i have installed
Avatar
Hi, I&#39;m attempting to build OpenBMC on Debian testing. This is the command that fails: ocp-bluecmd:~/openbmc/build/tmp/work/x86_64-linux/u-boot-mkimage-native/1_2017.09-r0/git$ gcc -isystem...
6:28 PM
can i write it using dd in kobo or do i need to get the sd card from inside?
6:29 PM
and write it using the PC
Avatar
you can use the Kobo
6:29 PM
dd if=u-boot.bin of=/dev/mmcblk0 bs=1K seek=1 skip=1
Avatar
Avatar
tux-linux
dd if=u-boot.bin of=/dev/mmcblk0 bs=1K seek=1 skip=1
actually im not sure if this is the correct command
6:49 PM
here is a part of the script from the device, the update script if [ `echo $UBOOT | grep -c imx` == 1 ]; then dd if=$UBOOT of=/dev/$DEVICE bs=1K seek=1 else dd if=$UBOOT of=/dev/$DEVICE bs=1K seek=1 skip=1
6:49 PM
i think imx is a procesor type
Avatar
Maybe omit the skip then
6:49 PM
Look in the update zips from Kobo
6:49 PM
See what it's called
Avatar
mine nia has mx6ull
Avatar
Avatar
tux-linux
See what it's called
it called using cpu names
6:50 PM
so i will not use skip
6:50 PM
no, i think wrong
6:50 PM
i will, there is a else
Avatar
backup the boot sector
6:51 PM
what's fdisk -l on your device?
Avatar
Avatar
tux-linux
backup the boot sector
i have backup of the whole sd card
6:52 PM
like, i bricked my ereader 5 times already
Avatar
ok, well flashing only the boot sector would probably be better for the sd
Avatar
i can copy only the boot sector from the sd card
6:53 PM
Well, do that if you brick it
Avatar
its dead
6:55 PM
D:
6:55 PM
even the led doesn't work
Avatar
then probably skip=1
6:58 PM
my pc doesn't list partitions?
6:59 PM
um...
Avatar
You probably just have overwritten the DOS boot sector!
6:59 PM
Congrats
6:59 PM
So fdisk is like what in the world has happened to this thing
Avatar
??? how
Avatar
Just reflash the unpartitioned space, you'll get it back
7:00 PM
Did you include skip or seek?
Avatar
i included seek
Avatar
strange then
7:00 PM
idk
Avatar
partitions are back
7:06 PM
u-boot works
7:07 PM
but the kernel does not boot
Avatar
Oh...
Avatar
oh i know
Avatar
Strange
Avatar
i had a custom one
Avatar
i randomly copied 5 Mb of the boot sector
7:07 PM
i think i cut the kernel in half
7:07 PM
and the other half is the custom one
Avatar
Whoops
Avatar
30 Mb will be good then :D
Avatar
the second option does not work either, but now i see the partition table
7:20 PM
so u-boot does not work
7:20 PM
hmm, maybe the config?
Avatar
I the cmd in the oryginal u-boot, there were those commands, in the config they are off, so the config is wrong
7:39 PM
Avatar
config might be wrong, yes Kobo doesn't always release the atomic copy of their sources trees
Avatar
Avatar
tux-linux
config might be wrong, yes Kobo doesn't always release the atomic copy of their sources trees
this is not cool
7:40 PM
its very bad
Avatar
yes it is
Avatar
can i launch u-boot from u-boot?
Avatar
yes
Avatar
so i dont need to rewrite it every time
Avatar
I think you need to load it to memory first, then go <memory address>
7:41 PM
But maybe you can use download mode
Avatar
i will download it using tftp
Avatar
Is there a download_mode command in your U-Boot?
Avatar
i checked the command
7:42 PM
there were many of them, like tftp, usb, i2c, boot from usb etc
Avatar
You have to use uuu to download U-Boot
7:42 PM
Freescale/NXP I.MX Chip image deploy tools. Contribute to NXPmicro/mfgtools development by creating an account on GitHub.
Avatar
whots that?
Avatar
An USB downloader
7:43 PM
Takes U-Boot and writes it into the Nia's RAM
7:43 PM
Then starts it
Avatar
which command does this to ram?
Avatar
uuu u-boot.imx
7:44 PM
with sudo if required
Avatar
and i think i can fastboot boot img?
Avatar
Yes, but that is for the kernel only AFAIK
Avatar
Avatar
tux-linux
uuu u-boot.imx
this command has not a good description
Avatar
If there is no download_mode command in U-Boot, then you could enter this: eBR-1A # mw 20d8040 30 eBR-1A # mw 20d8044 10000000 eBR-1A # reset But I suggest you wait a bit; @andi might have some warnings since it's a different platform
Avatar
Avatar
Szybet
this command has not a good description
Basically does "Take u-boot.imx file and load it in IMX USB device plugged in, then start it" (edited)
Avatar
Avatar
tux-linux
If there is no download_mode command in U-Boot, then you could enter this: eBR-1A # mw 20d8040 30 eBR-1A # mw 20d8044 10000000 eBR-1A # reset But I suggest you wait a bit; @andi might have some warnings since it's a different platform
?... whots that
Avatar
Basically download_mode without the actual command
Avatar
Writes to memory addresses
Avatar
Avatar
tux-linux
Basically does "Take u-boot.imx file and load it in IMX USB device plugged in, then start it" (edited)
if it fails, it will reset?
7:48 PM
i mean the u-boot
7:48 PM
or i can just reboot it
7:48 PM
nevermind
Avatar
So that the SoC thinks there's a download mode pin activated until a complete hardware reset is done (power down, power up, not just reset in U-Boot)
Avatar
Avatar
Szybet
if it fails, it will reset?
No, you have to do the power-down-up sequence described before
7:49 PM
But I suggest we wait for andi1 to give some advice Maybe it could physically damage your device, I don't know (edited)
7:49 PM
Otherwise, if you have the download_mode command, you can try that
Avatar
Avatar
tux-linux
If there is no download_mode command in U-Boot, then you could enter this: eBR-1A # mw 20d8040 30 eBR-1A # mw 20d8044 10000000 eBR-1A # reset But I suggest you wait a bit; @andi might have some warnings since it's a different platform
i will not use those command, they feel dangerous
Avatar
Well, we have to know if we're writing the right thing at the right place, after that we don't have to worry
7:50 PM
Maybe you can try the tftp thing you were talking about
Avatar
i dont know if a u-boot kernel will boot when it expects a normal kernel
7:51 PM
but u-boot is linux too
7:51 PM
¯\_(ツ)_/¯
7:53 PM
7:53 PM
does u-boot have wifi support?
7:53 PM
nope
Avatar
Avatar
Szybet
but u-boot is linux too
no
7:56 PM
maybe you can load it on serial
7:56 PM
loady
7:56 PM
loadx
7:56 PM
loadb
7:56 PM
whatever
Avatar
Avatar
tux-linux
no
i readed smth in a wrong way
7:59 PM
i tryied booting it using fastboot
7:59 PM
7:59 PM
data abort
7:59 PM
whot does it mean
8:13 PM
and this hangs
Avatar
I honestly don't know
Avatar
Avatar
Szybet
Click to see attachment 🖼️
Is the Kobo put in download mode?
8:26 PM
(not fastboot)
Avatar
you mean a command named download_mode
8:27 PM
?
8:33 PM
8:34 PM
now, how do i launch it
Avatar
Avatar
Szybet
you mean a command named download_mode
yes
Avatar
this command is missing
8:35 PM
8:35 PM
i have those options
Avatar
Avatar
Szybet
now, how do i launch it
Honestly, I do not know for sure Maybe go 0x80800000, assuming it's the address where it put the U-Boot
8:36 PM
its there
8:36 PM
i will try it
Avatar
ok, good address at least
8:37 PM
I highly doubt it will work but you can try anyway
Avatar
how do i know if its working
8:37 PM
when my u-boot image is not working
Avatar
you should see a log
Avatar
Try with factory U-Boot
8:38 PM
on serial
Avatar
Avatar
tux-linux
Try with factory U-Boot
you mean?
Avatar
Download the latest update zip from Kobo, and take the U-Boot in upgrade/
8:40 PM
Try 0x17800000 maybe instead
8:41 PM
I'm trying to understand embedded Linux principles and can't figure out addresses at u-boot output. How can i find the starting address of U-boot? For example, I have MX6-SabreSD board based on i...
8:47 PM
well, no
Avatar
I guess the only option now would be to try the mw commands above Or just flash U-Boot to the MMC with skip=1
Avatar
1 i need to be sure thats this is safe* 2 i could, but i dont think getting it to work will be easy and fast, and unplugging the sd card from the inside many many times is not a good idea. the sd port could be damaged, the battery plug after many plug-unplug cykles too, and just tinkering with the inside is risky, there are ribbons, voltage to short (edited)
Avatar
Avatar
Szybet
1 i need to be sure thats this is safe* 2 i could, but i dont think getting it to work will be easy and fast, and unplugging the sd card from the inside many many times is not a good idea. the sd port could be damaged, the battery plug after many plug-unplug cykles too, and just tinkering with the inside is risky, there are ribbons, voltage to short (edited)
Well, once you get a working U-Boot, you can boot the kernel or flash it with fastboot
8:53 PM
The goal is just to get it booting and have it loading the kernel at sector 81920 with 18432 load size
8:53 PM
Ooooh
8:53 PM
Maybe
8:53 PM
ums 0 mmc 0
8:53 PM
Does that work?
8:53 PM
Should export entire MMC over USB as a block device
Avatar
Avatar
tux-linux
The goal is just to get it booting and have it loading the kernel at sector 81920 with 18432 load size
and maybee adding some features to it to make usb to work
👍 1
Avatar
Avatar
tux-linux
Does that work?
yes
8:55 PM
but
8:55 PM
whot now?
8:56 PM
if i overwrite the bootloader and its bircked i will need to open the device
Avatar
it isin't possible?
9:19 PM
I would like to boot an U-boot image from RAM using another U-boot. I loaded the U-boot image in the RAM using tftp tftp 0x90000000 u-boot.img and tried to run it with go 0x90000000 but nothing hap...
Avatar
Welp, maybe not
Avatar
Avatar
Szybet
if i overwrite the bootloader and its bircked i will need to open the device
yes
9:20 PM
But once you have a working bootloader you won't need to open it ever again
Avatar
Avatar
Szybet
1 i need to be sure thats this is safe* 2 i could, but i dont think getting it to work will be easy and fast, and unplugging the sd card from the inside many many times is not a good idea. the sd port could be damaged, the battery plug after many plug-unplug cykles too, and just tinkering with the inside is risky, there are ribbons, voltage to short (edited)
i writed here
9:22 PM
i would like to avoid that...
9:22 PM
First some background: We have the following setup in our iMX6-based embedded system. There are two U-Boot partitions and two system (Linux) partitions. Currently we use only the first U-Boot parti...
9:22 PM
maybe it is possible?
9:22 PM
bruh
Avatar
sunxi boards have an U-Boot which loads another U-Boot, it's called U-Boot SPL. I don't know if it is possible on i.MX though...
Avatar
couldn't i write a second u-boot somewhere on the sd card and boot it then?
Avatar
i dont need the partition, i want to get the bootloader to work
Avatar
The load address is hardcoded in the SoC
Avatar
and i could't boot from uboot then?
Avatar
Did you try to flash it with dd if=u-boot.bin of=/dev/mmcblk0 bs=1K seek=1 skip=1?
9:25 PM
When it is powered on, the SoC searches for something at sector 0x400 of the MMC, which is 1K. If it doesn't find anything there, it won't boot.
Avatar
Avatar
tux-linux
Did you try to flash it with dd if=u-boot.bin of=/dev/mmcblk0 bs=1K seek=1 skip=1?
i think yes
9:26 PM
thats not the problem
Avatar
Ok, so compiler/source/other issue then
Avatar
to resolve it i would prefer not to unplug the sd card every time
Avatar
On all my Kobos, I have plugged/unplugged the SD card countless times (like, really a lot, 5-10 times/day for 6 months) and they still work
9:28 PM
I don't know how the Nia's slot is, but on the ones I have it is quite sturdy
Avatar
shorting / a capacitor could fell off
9:28 PM
:/
Avatar
It never happened to me either
Avatar
good, but its a risk
9:29 PM
i dont like risk
Avatar
And the number of times I've let my serial line, or my VCC line fall on the Kobo mainboard is quite high too, all works fine after that though
Avatar
Avatar
tux-linux
And the number of times I've let my serial line, or my VCC line fall on the Kobo mainboard is quite high too, all works fine after that though
its risk too
9:30 PM
hmm, now look at this
9:30 PM
Avatar
You can take Clay Tack and create a small patch of it, then take out the SD with it
Avatar
Avatar
Szybet
Click to see attachment 🖼️
it hanged after it
9:31 PM
bruh
Avatar
Avatar
Szybet
i used the dd there
I guess it really didn't know how to handle that file, so it just reset instead of outputting data abort errors
Avatar
Avatar
tux-linux
I guess it really didn't know how to handle that file, so it just reset instead of outputting data abort errors
then there would be data error, or smth like that
9:32 PM
and this looks like it booted but then hang
9:32 PM
Maybe not
Avatar
Avatar
tux-linux
I guess it really didn't know how to handle that file, so it just reset instead of outputting data abort errors
We know this is the newer UBoot simply because the normal one we're using outputs an October date rather than a November one. Unfotunately, it hangs at that point, with the watchdog timer eventually kicking in and rebooting back to the original UBoot but I suspect that has to do with UBoot not liking the current state of the device (i.e., it doesn't like initialising it twice). So we'll have to figure out how to convince it to do so but at least we've gotten it booting another copy of itself, which is what the question was about.
Avatar
Clay Tack really works well to attach/detach MMC
Avatar
Avatar
Szybet
We know this is the newer UBoot simply because the normal one we're using outputs an October date rather than a November one. Unfotunately, it hangs at that point, with the watchdog timer eventually kicking in and rebooting back to the original UBoot but I suspect that has to do with UBoot not liking the current state of the device (i.e., it doesn't like initialising it twice). So we'll have to figure out how to convince it to do so but at least we've gotten it booting another copy of itself, which is what the question was about.
oh no... ;/
Avatar
Then download mode is really the last option
Avatar
Avatar
tux-linux
Clay Tack really works well to attach/detach MMC
well yes the sd card isin't that much of a problem
9:34 PM
but look at this
9:34 PM
9:34 PM
this connector with a chip on it
9:34 PM
eassly to damage
9:35 PM
i would really really prefer not to open it every time
Avatar
Maybe you can just leave the back over off?
9:35 PM
Once I open my Kobos they don't get closed before a long time ;p
Avatar
Avatar
tux-linux
Maybe you can just leave the back over off?
its risky to the connector
9:37 PM
9:37 PM
i dont close it for now, just some rubber bands
9:38 PM
lets try from the other site, why does inkbox need to change those memory locations
9:38 PM
if its bigger, then why? could't it fit?
9:38 PM
maybe do some kernel options as modules, they are stored in the initframs
Avatar
Because otherwise it overwrites the waveform
Avatar
whots waveform in the kobo
Avatar
= display completely stops working
Avatar
Avatar
Szybet
maybe do some kernel options as modules, they are stored in the initframs
and this idea?
Avatar
What do you mean?
Avatar
the kernel is too big, right?
Avatar
yes
Avatar
then compile more modules, the are stored in the initframs
Avatar
~8MB on a Wi-Fi device
Avatar
Avatar
Szybet
then compile more modules, the are stored in the initframs
The thing is that the modules are embedded in the initramfs
9:41 PM
in a squashfs
Avatar
thats the point
Avatar
So that I don't have to mess up on the rootfs to setup the right modules for each devices
Avatar
Avatar
Szybet
thats the point
yes
9:41 PM
If I compile more modules, it will only make matters worse
Avatar
i mean
9:42 PM
compile things in the kernel as modules
9:42 PM
the kernel will be smaller
9:42 PM
because the initramfs is embedded in the kernel
Avatar
whot... how... why...
Avatar
Because it is possible
Avatar
if it wasn't like that it could work without modyfication
9:44 PM
i dont know if it must be like that
Avatar
Maybe another option would be to load the kernel from a partition But I think the vendor U-Boot prevents that and loads it from the unpartitioned space anyway
9:45 PM
You can try
9:45 PM
extload command
9:45 PM
But at this point, there's got to be a way to compile U-Boot I mean, it's not possible that it can't work
9:46 PM
Did you try flashing Kobo's provided U-Boot to your MMC? Does that work?
Avatar
Avatar
tux-linux
Did you try flashing Kobo's provided U-Boot to your MMC? Does that work?
i think yes, but i will try it one more time to be sure
Avatar
Be sure to flash this file upgrade/mx6ull-ntx/u-boot-mx6ull-E60U20-LPDDR2-256MB.imx
9:47 PM
dd if=u-boot-mx6ull-E60U20-LPDDR2-256MB.imx of=/dev/mmcblk0 bs=1K seek=1 skip=1
Avatar
yes i use this
Avatar
And it doesn't work?
Avatar
Avatar
tux-linux
And it doesn't work?
i think it worked, i will try it now
👍 1
Avatar
it does not work?
9:57 PM
thats... weird?
Avatar
Yes it is
9:57 PM
So maybe what you compiled was good
Avatar
no, i restored it to work by dd 30M of the sd image
9:58 PM
so the old is working
Avatar
Yes, but if the provided official one does not work, there is a problem
Avatar
but if i try to flash it kills himself
9:58 PM
Kobo nia ereader with audio added. Contribute to Szybet/kobo-nia-audio development by creating an account on GitHub.
Avatar
what--
Avatar
here is literally the update script
Avatar
Avatar
tux-linux
what--
it just bricks
Avatar
oh the device
9:59 PM
when you reboot it you mean?
Avatar
that's really strange
Avatar
i will copy the bricked fragment and look at the hex
👍 1
Avatar
i dont know how to show this to you
10:15 PM
but in the working one there is some data before the u-boot
10:15 PM
and the not working one does not
Avatar
Avatar
Szybet
i dont know how to show this to you
click watch oryginal for better wiev
Avatar
I don't really know what to say
10:16 PM
There seem to be differences between the two
10:16 PM
But I can't interpret them
Avatar
there are maybe diffrent u-boot versions, but the concerning thing is the data that isin't in the bricked
10:18 PM
its maybe a header for the cpu, to check for something
10:19 PM
like, android devices kernels need special headers to boot
Avatar
hmm... @andi so whot about the download mode?
Avatar
Avatar
tux-linux
If there is no download_mode command in U-Boot, then you could enter this: eBR-1A # mw 20d8040 30 eBR-1A # mw 20d8044 10000000 eBR-1A # reset But I suggest you wait a bit; @andi might have some warnings since it's a different platform
i mean this
Avatar
im dumb
11:23 PM
i figured it out
11:23 PM
i can now write using dd
11:23 PM
the command is dd if=$UBOOT of=/dev/$DEVICE bs=1K seek=1 without skip
Avatar
the custom kernel is working, i needed to use the .imx file
Avatar
Avatar
Szybet
im dumb
So what was the problem?
4:49 AM
Nice!
Avatar
Avatar
tux-linux
So what was the problem?
1 the command was wrong, without skip, not with it 2 idk, why when i tested without skip it erased the dos, maybe the sd card reader was faulty this one time 3 i needed to use the compiled .imx file, not been like you said
👍 1
Avatar
ok, now im waiting for instructions whot to change in the kernel and bootloader
1:40 PM
and how to install inkbox
Avatar
generally abut uboot and skip: if the uboot.imx binary starts with zeros, you need the skip
3:50 PM
if not, you do not need it
Avatar
? its working now
3:51 PM
it is working
3:51 PM
thats the point now
3:51 PM
maybe the bin file would work too
3:51 PM
idk
Avatar
Avatar
andi
generally abut uboot and skip: if the uboot.imx binary starts with zeros, you need the skip
good to notice
Avatar
that download mode needs the uboot.imx without all that leading zeros (edited)
Avatar
i dont have the command for download mode
3:55 PM
and i didn't saw a option for it in the config by menuconfig?
Avatar
that stone-age 2009.08 kobo-patched uboot prepends the zeros in the build process, and fastboot flash bootloader strips them. Later uboots do not prepend that zeros.
👍 1
3:55 PM
seems not to be there in newer uboots
Avatar
but you can do the two magic mw commands
Avatar
are they safe?*** (edited)
Avatar
i will check for the 6ull
Avatar
hm? how?
Avatar
I will check the data sheet of the SoC
👍 1
Avatar
oh, cool
Avatar
for the 6sl and 6sll they are safe
3:57 PM
just writing to some volatile registers
3:57 PM
which get reset on some power cycle
Avatar
@tux-linux you could describe the steps to install inkbox, I can now compile the kernel and u-boot
Avatar
It's really more like doing it as we go, there isn't a premade manual or anything You can look at the Libra H2O porting thread to get an idea
Avatar
hmm, okay
Avatar
I'll guide you I'll be ready in some 10mins
Avatar
sure i will wait
Avatar
So you got a kernel compiled, and it works, right?
Avatar
i have compiled many kernels, the work
4:10 PM
so yes
Avatar
in the kobo you mean?
4:10 PM
because sometimes they are finicky about compiler used
Avatar
for the kobo, yes
4:10 PM
i tryied to make usb host to work, so i compiled many of them
Avatar
ok nice (edited)
4:11 PM
So what I'll first do will be to integrate the vendor sources into InkBox kernel tree
Avatar
hmm okay
Avatar
Did you modify anything to get it working, or it compiled and started fine out of the box?
Avatar
look here
4:12 PM
Kobo nia ereader with audio added. Contribute to Szybet/kobo-nia-audio development by creating an account on GitHub.
4:12 PM
Fixes first 2 points
4:13 PM
maybe your toolchains are also ok, idk
Avatar
Does it work if you try to compile with armv7l-linux-musleabihf?
Avatar
i didn't tryied it
4:13 PM
i can now if you want
Avatar
yes, sometimes they compile fine but they don't boot
4:14 PM
so ideally try to start it on the Kobo too
4:27 PM
it does not work
Avatar
You said it is Linux 4.1.15?
Avatar
Can you try with arm-nickel-linux-gnueabihf?
Avatar
one sec
Avatar
I know it is GCC 4.9, but it seems to compile fine my Libra's kernel which is also 4.1.15
4:35 PM
Also, does your Nia have any other physical buttons somewhere or do you only have the power button?
Avatar
Avatar
tux-linux
Also, does your Nia have any other physical buttons somewhere or do you only have the power button?
ony the power button
4:37 PM
The Wi-Fi device uses 8189fs module I guess
4:38 PM
Do you have a picture of the PCB?
Avatar
Avatar
tux-linux
The Wi-Fi device uses 8189fs module I guess
something like this, look here to be sure https://github.com/Szybet/kobo-nia-audio/tree/main/logs
Kobo nia ereader with audio added. Contribute to Szybet/kobo-nia-audio development by creating an account on GitHub.
Avatar
Avatar
tux-linux
Do you have a picture of the PCB?
i have, i will upload them to github, one sec
4:39 PM
it compiled with nickel, i will flash it and try
Avatar
Avatar
Szybet
something like this, look here to be sure https://github.com/Szybet/kobo-nia-audio/tree/main/logs
it is, thanks the RTL871X gives it away
Avatar
Kobo nia ereader with audio added. Contribute to Szybet/kobo-nia-audio development by creating an account on GitHub.
4:46 PM
here are the images
4:46 PM
why do you need them?
Avatar
well it was to verify the wi-fi chip but actually the dmesg logs were convincing enough
4:51 PM
But it will be useful anyway for future reference
4:52 PM
@andi will probably be interested to look at them
Avatar
maybe andi1 could help me with usb host? :D
4:52 PM
actually who is andi1
Avatar
Andreas Kemnade
4:53 PM
Linux kernel source tree. Contribute to akemnade/linux development by creating an account on GitHub.
Avatar
like, he has the datasheets of cpus
Avatar
He ported Linux 5.16 to other Kobos
Avatar
wow, really :O?
4:54 PM
It would be nice if nia would have the kernel 5.16
4:54 PM
i could do that, but i dont know how
4:54 PM
i dont know cpp or c, so im out propably
Avatar
He's already made a test branch for Aura SE (vendor kernel initially at 3.0.35) which I didn't have the time to try yet... Hopefully today
Avatar
@tux-linux nickel booted
5:00 PM
from where did you get this toolchain? why is it named nickel
Avatar
It's from @pgaskin
5:01 PM
nice
Avatar
Avatar
tux-linux
It's from @pgaskin
and he is?
Avatar
A dockerized, deterministic, automated, fixed, and fully-relocatable build of @NiLuJe&#39;s toolchain for Kobo eReaders. - GitHub - pgaskin/NickelTC: A dockerized, deterministic, automated, fix...
Avatar
oh this
Avatar
He created NickelMenu
Avatar
wow :O
5:01 PM
nickelmenu is awesome, like how did he hacked into kobo program
Avatar
Patch the binary
Avatar
Well, instead of writing code, patching in binary data
Avatar
I don't know more, my knowledge of binary patching stops here 😄
Avatar
binary patching
5:03 PM
i hear it first time
Avatar
Take a hex editor and replace bits
5:03 PM
no no
Avatar
And you can change the behavior of a program I guess
Avatar
yes but... its nearly impossible
5:03 PM
like, some variables ok
5:03 PM
but not an entire menu
Avatar
Well, ask him, he will probably have more info than me on this
Avatar
if he reads it, he can answer
5:04 PM
ok, the toolchain works, now whot
Avatar
git pull the kernel repo
5:05 PM
Added Nia sources and scripts to make it work with InkBox build https://github.com/Kobo-InkBox/kernel/commit/069fc2fb3f7544d7b93bd07489af071961d8f958
5:05 PM
env GITDIR=/home/build/inkbox/kernel TOOLCHAINDIR=/home/build/inkbox/kernel/toolchain/arm-nickel-linux-gnueabihf/ THREADS=16 TARGET=arm-nickel-linux-gnueabihf scripts/build_kernel.sh n306 root
5:05 PM
Change env vars depending on where you cloned the repo
5:06 PM
I strongly suggest you simply put the repo in /home/build/inkbox/kernel
Avatar
Avatar
Szybet
and he is?
the entity replying to your message
Avatar
Avatar
tux-linux
Well, instead of writing code, patching in binary data
naa, that's kobopatch
Avatar
Oh sorry then But kobopatch must be related to NickelMenu in some way, right?
Avatar
Avatar
Szybet
nickelmenu is awesome, like how did he hacked into kobo program
he didn't (except for when he worked on the dictionary encryption in dictutil)
Avatar
Avatar
tux-linux
Oh sorry then But kobopatch must be related to NickelMenu in some way, right?
completely separate
Avatar
Well, NickelHook does hack into the program
5:08 PM
hmm ok
Avatar
Avatar
tux-linux
Well, NickelHook does hack into the program
technically
Avatar
Avatar
pgaskin
he didn't (except for when he worked on the dictionary encryption in dictutil)
whot is this program doing
Avatar
Is it like an LD_PRELOAD trick that hijacks the QPA and Nickel?
Avatar
Avatar
tux-linux
env GITDIR=/home/build/inkbox/kernel TOOLCHAINDIR=/home/build/inkbox/kernel/toolchain/arm-nickel-linux-gnueabihf/ THREADS=16 TARGET=arm-nickel-linux-gnueabihf scripts/build_kernel.sh n306 root
This should give you a small kernel that can still boot Nickel in kernel/out/n306/zImage-root Try it and report back if it boots
Avatar
do i need to change n306 and root at the end to smth else?
5:11 PM
just dd if=zImage-root of=/dev/mmcblk0 bs=512 seek=2048
5:12 PM
I'll also grab U-Boot sources and put them into the tree as well
Avatar
n306 is nia codename?
Avatar
yes
Avatar
@tux-linux how many changes were needed for the kernel aside from the oryginal? are there enabled chipidea controllers, and usb host support? is it the same kernel version?
Avatar
For InkBox? Nothing, usually
5:16 PM
I only modify the kernel config
5:16 PM
not the code
Avatar
i mean the kernel config
Avatar
unless there's something really messed up
Avatar
whot was there edited
Avatar
oh; well namely, you have to enable loopback device support, FUSE, squashFS and other things
5:18 PM
i'll do that for you
5:18 PM
But once I set up the config, Nickel won't boot anymore since InkBox is a completely different infrastructure
Avatar
Avatar
tux-linux
But once I set up the config, Nickel won't boot anymore since InkBox is a completely different infrastructure
i dont care
5:18 PM
inkbox has usbutils by default, i think
5:18 PM
thats more important
5:20 PM
linux booted, kernel too
👍 1
Avatar
Avatar
Szybet
inkbox has usbutils by default, i think
No?
Avatar
whots this
5:28 PM
Avatar
Alpine default
5:29 PM
Well maybe you can do something with it
5:29 PM
mx6ull_ntx_lpddr2_256m_defconfig so that U-Boot config worked?
Avatar
Avatar
tux-linux
Is it like an LD_PRELOAD trick that hijacks the QPA and Nickel?
yes
Avatar
oh nice
Avatar
Avatar
tux-linux
mx6ull_ntx_lpddr2_256m_defconfig so that U-Boot config worked?
yes
Avatar
Avatar
tux-linux
Well maybe you can do something with it
well.... it will be easier to install libusb on your open source system that on kobo's default one (edited)
Avatar
maybe not
5:32 PM
Have you looked on how InkBox OS root filesystem is mounted at boot?
5:32 PM
It's a read-only squashFS archive
5:32 PM
It can be made read-write with overlayfs-fuse though
5:33 PM
So actually yes, according to your recent enough kernel version you should be able to install things without issue
Avatar
yea, and most imporant, kobo is making some weird udev parkour with usb, i tryied to disable it but with no success i think
Avatar
You have to use the --no-cache option of apk to install packages though, otherwise it won't work
Avatar
on your system i can see everything
👍 1
Avatar
Avatar
tux-linux
You have to use the --no-cache option of apk to install packages though, otherwise it won't work
does it have a package manager???
Avatar
yes, it's based on Alpine Linux
Avatar
oh god thanks
5:34 PM
and oh god no
Avatar
But it's an outdated version
5:34 PM
Alpine 3.10 from 2019
Avatar
i installed alpine on my tablet and use it as a small server
5:34 PM
and installing software on it was pain
Avatar
Avatar
tux-linux
You have to use the --no-cache option of apk to install packages though, otherwise it won't work
why no cache?
Avatar
If I used more recent versions of Alpine on devices with 2.6.35.3 kernels (>70% of supported devices), all (literally) binaries segfaulted and I couldn't get the system to work
Avatar
Avatar
Szybet
why no cache?
no idea
5:35 PM
It doesn't work if I omit it
Avatar
Avatar
tux-linux
If I used more recent versions of Alpine on devices with 2.6.35.3 kernels (>70% of supported devices), all (literally) binaries segfaulted and I couldn't get the system to work
do you know why?
Avatar
well, running a 2021 system on a 12 year old kernel isn't a good idea from the start
Avatar
Interestingly enough, when you compiled latest musl and busybox yourself, it ran without issue
5:37 PM
So I tried to recompile all the Alpine packages on a Raspberry Pi but it ended up being waaaay too much work
Avatar
also, why squashfs filesyste?
Avatar
Avatar
tux-linux
So I tried to recompile all the Alpine packages on a Raspberry Pi but it ended up being waaaay too much work
true, its too much effort. 2019 is good
Avatar
1. Saves space 2. Read-only, if you set it to read-write you just delete the overlayfs cache to have a clean rootfs again 3. No MMC writes unless you have read-write enabled (well, read-only mount on standard partition works too, but squashfs is even better) (edited)
Avatar
Also, it is oh-so-helpful for updates
Avatar
the only downside is that is not so easy to install software on it
Avatar
You just put a rootfs.squashfs file in the update package and scripts handle this for you
Avatar
Avatar
Szybet
the only downside is that is not so easy to install software on it
Well, overlayfs on newer devices like the Nia, Clara HD, Libra, makes this painless
5:40 PM
ifsctl mnt rootfs rw and you're good to go
Avatar
whot about running somethink like this? https://github.com/baskerville/plato
Document reader. Contribute to baskerville/plato development by creating an account on GitHub.
5:41 PM
i think without issue?
Avatar
InkBox OS root filesystem. Contribute to Kobo-InkBox/rootfs development by creating an account on GitHub.
Avatar
Avatar
Szybet
whot about running somethink like this? https://github.com/baskerville/plato
why would you want to do that?
Avatar
i can program in rust, and its written in rust
5:41 PM
and its super fast
Avatar
But InkBox already has a built-in ebook reader!
5:42 PM
I did not make InkBox so that people could install KOReader and Plato on it
Avatar
if it will be realy good i will need to learn cpp!
Avatar
Avatar
tux-linux
I did not make InkBox so that people could install KOReader and Plato on it
thats true
Avatar
Avatar
Szybet
if it will be realy good i will need to learn cpp!
It's not that hard
Avatar
for whot are we waiting for?
5:43 PM
to install inkbox on nia
Avatar
Avatar
tux-linux
It's not that hard
i programmed some arduinos, stm32 with cpp and it was sometimes pain, rust is easier
Avatar
Avatar
Szybet
to install inkbox on nia
compile u-boot
5:43 PM
will be there in a moment
5:43 PM
with modified code
Avatar
Avatar
tux-linux
compile u-boot
i need to do it?
5:44 PM
compile u-boot with nickel?
Avatar
yes, to change kernel sector to 81920 and load size to 18432
5:45 PM
git pull and compile U-Boot in bootloader/mx6ull-n306/
Avatar
Avatar
tux-linux
yes, to change kernel sector to 81920 and load size to 18432
it isin't in the config, right?
5:49 PM
No, in ntx_comm.c
5:50 PM
now i need to flash it?
Avatar
yes
5:50 PM
And it should fail to boot
5:50 PM
But you should at least see a boot log
5:50 PM
Something saying that it can't find the kernel image
Avatar
Would be nice if you posted the boot log too
5:54 PM
here
5:54 PM
it booted, no linux kernel
Avatar
Awesome
5:54 PM
Now, we'll partition the SD card
5:57 PM
Disk /dev/nbd0: 4 GiB, 4294967296 bytes, 8388608 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x25c915c4 Device Boot Start End Sectors Size Id Type /dev/nbd0p1 49152 79871 30720 15M 83 Linux /dev/nbd0p2 104448 1128447 1024000 500M 83 Linux /dev/nbd0p3 1128448 1390591 262144 128M 83 Linux /dev/nbd0p4 1390592 8388607 6998016 3.3G 83 Linux (edited)
5:57 PM
Make it look like this (start/end sectors are very important) (edited)
5:57 PM
(the first partition starts at 49152, right?)
Avatar
so i need to plug it into pc?
Avatar
Well, yeah, ums 0 mmc 0 from U-Boot if you want
Avatar
whot tool to use? fdisk?
Avatar
yes
6:00 PM
You can clear all the partition table with o
Avatar
Avatar
tux-linux
You can clear all the partition table with o
?
Avatar
in fdisk cmd
6:01 PM
i havent used fdisk, always cfdisk, gparted and other
6:06 PM
whyyyy has it 15Mb
6:06 PM
Avatar
It's the boot partition
6:07 PM
Only contains flags
Avatar
so its okay?
6:08 PM
your has 19 M mine 15
Avatar
yes
Avatar
Well my bad
6:08 PM
I tried to edit the fdisk output but forgot to change the size
6:09 PM
Done
6:09 PM
Because the emulator's MMC first partition starts at 40959
6:09 PM
But I modified it so it could match your Nia's layout
Avatar
oh okay
6:09 PM
just some confusion
Avatar
yeah
Avatar
my sd card is bigger, can i make the last partition to the end or is after ir some data?
Avatar
yes
6:11 PM
you can extend it
Avatar
14 gb for books
6:13 PM
i had 6,9 using kobo
6:13 PM
Avatar
not only for books
Avatar
Avatar
tux-linux
not only for books
yes i know
Avatar
all good
Avatar
good, i will save it
6:15 PM
fdisk without sudo worked?
6:15 PM
it worked
6:15 PM
whot now?
Avatar
Avatar
Szybet
fdisk without sudo worked?
strange
6:15 PM
are you sure it did?
Avatar
lsblk shows yes
Avatar
hmm ok
Avatar
unplugged, plugged back and its there
6:16 PM
so its ok
Avatar
fine now, clone the rootfs repo
Avatar
env GITDIR="${PWD}" ./release.sh
6:18 PM
Should create you a nice rootfs squashfs
6:18 PM
run it as root
6:18 PM
you can look at the script if you want to be sure it's safe
Avatar
there isin't anything that could be harmfull
6:19 PM
done
6:19 PM
really fast
Avatar
Ok, so now in parent directory you should have rootfs.squashfs
6:20 PM
right?
Avatar
what's the script output?
Avatar
[root@ArchSzybet rootfs]# env GITDIR="${PWD}" ./release.sh Parallel mksquashfs: Using 8 processors Creating 4.0 filesystem on ../rootfs.squashfs, block size 1048576. [============================================================================\] 6979/6979 100% Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 1048576 compressed data, compressed metadata, compressed fragments, compressed xattrs, compressed ids duplicates are removed Filesystem size 73621.37 Kbytes (71.90 Mbytes) 34.22% of uncompressed filesystem size (215152.91 Kbytes) Inode table size 74379 bytes (72.64 Kbytes) 25.76% of uncompressed inode table size (288710 bytes) Directory table size 79735 bytes (77.87 Kbytes) 46.50% of uncompressed directory table size (171486 bytes) Number of duplicate files found 666 Number of inodes 8427 Number of files 6899 Number of fragments 131 Number of symbolic links 904 Number of device nodes 0 Number of fifo nodes 0 Number of socket nodes 0 Number of directories 624 Number of ids (unique uids + gids) 2 Number of uids 2 root (0) szybet (1002) Number of gids 2 root (0) szybet (1002) Root filesystem has been compressed. (edited)
Avatar
This looks alright
6:22 PM
ls ../rootfs.squashfs?
Avatar
Avatar
tux-linux
ls ../rootfs.squashfs?
yes
6:22 PM
something is wrong with the script
Avatar
Avatar
tux-linux
Ok, so now in parent directory you should have rootfs.squashfs
oh, parent directory
Avatar
Avatar
Szybet
yes
is it there or not?
6:22 PM
yes it is (edited)
Avatar
ok; I saw you have uid 1002 there; this will cause problems
6:23 PM
delete the whole repo and clone it as root this time
6:23 PM
so that the files will be owned by root
Avatar
Avatar
tux-linux
env GITDIR="${PWD}" ./release.sh
then redo that
6:25 PM
maybe add to the script chown -R root:root * for the future?
Avatar
maybe yeah
6:25 PM
I was thinking about fakeroot
6:25 PM
but didn't take the time to do it yet
Avatar
maybe too
6:25 PM
done with root
Avatar
compressed too?
Avatar
Root filesystem has been compressed.
👍 1
Avatar
Now do this in an empty directory openssl genrsa -out private.pem 2048 openssl rsa -in private.pem -out public.pem -outform PEM -pubout Then tar cJvf ../keys-n306.tar.xz . And send me keys-n306.tar.xz via PM (edited)
6:27 PM
Never ever share the private key with anyone else
Avatar
Avatar
tux-linux
Now do this in an empty directory openssl genrsa -out private.pem 2048 openssl rsa -in private.pem -out public.pem -outform PEM -pubout Then tar cJvf ../keys-n306.tar.xz . And send me keys-n306.tar.xz via PM (edited)
thats the part i didn't understand
Avatar
I put my trust in you This set of keys will be used to sign all packages in InkBox
Avatar
okay, is it so important to sign them?
Avatar
Yes, to ensure integrity
6:29 PM
Also InkBox OS won't boot if it can't validate the signatures
Avatar
it would be easier to do like kobo does, with a md5sum file
Avatar
Avatar
tux-linux
Also InkBox OS won't boot if it can't validate the signatures
this could be turned off
Avatar
there's an option to do that
6:30 PM
install a developer key
6:31 PM
Kernel sources for InkBox OS. Contribute to Kobo-InkBox/kernel development by creating an account on GitHub.
Avatar
does alpine require that?
Avatar
But InkBox was designed for security
Avatar
well, sure
Avatar
So I won't change my position on the subject
Avatar
good security is always good
👍 1
6:31 PM
but on the other side its a ereader
Avatar
Look at Kindles
6:32 PM
Newer ones have an even more strict security policy and implement HAB (verified boot in-SoC) to ensure kernel is signed correctly
Avatar
its only becouse to ensure that DRM will work corectly
6:33 PM
it does not have much to do with security
6:33 PM
and why do you need those private keys? could't i do it myself?
Avatar
Yes, too, but it is easier for some tasks (GUI bundle) Also if somehow you decide not to contribute at some point, I won't be able to sign the packages without you (edited)
Avatar
Gui bundle?
6:36 PM
I dont understand the second point
6:36 PM
like sure, private keys are needed
6:37 PM
Will i build the filesystem with those keys, and then upload them to inkbox repo?
Avatar
Only public key
6:37 PM
You'll be the only person with me that will know the private key
Avatar
Avatar
Szybet
Gui bundle?
update.isa file in update packages Contains qt, python and inkbox
6:38 PM
It isn't versioned yet, so it's local work currently
Avatar
Now you can sign the rootfs
6:39 PM
openssl dgst -sha256 -sign private.pem -out rootfs.squashfs.dgst rootfs.squashfs
6:39 PM
public keys are embedded in the initrd
6:39 PM
let me put the one you shared in there
Avatar
Avatar
tux-linux
openssl dgst -sha256 -sign private.pem -out rootfs.squashfs.dgst rootfs.squashfs
done
Avatar
now, copy those files into partition 3 of sd card (edited)
Avatar
when we speak about security, whot about encrypting files ( books ). they could be easly accesed when unplugging the sd card
6:42 PM
and the lock screen would not help
6:43 PM
some books are expensive, it would be nice if the thiev of the ereader could't get them
Avatar
already done
Avatar
really?
Avatar
hehe
6:43 PM
yes
6:43 PM
Look at the features list
Avatar
oh here i see
6:43 PM
  • Encrypted storage with EncFS
Avatar
That was a wild ride
Avatar
Avatar
tux-linux
now, copy those files into partition 3 of sd card (edited)
you mean ootfs.squashfs.dgst rootfs.squashfs private.pem?
Avatar
Probably the most complicated script I ever made https://github.com/Kobo-InkBox/rootfs/blob/master/etc/init.d/encfs
InkBox OS root filesystem. Contribute to Kobo-InkBox/rootfs development by creating an account on GitHub.
Avatar
Avatar
Szybet
you mean ootfs.squashfs.dgst rootfs.squashfs private.pem?
not private.pem only rootfs.squashfs*
Avatar
so 2 files?
Avatar
yes
Avatar
Avatar
tux-linux
Probably the most complicated script I ever made https://github.com/Kobo-InkBox/rootfs/blob/master/etc/init.d/encfs
this looks terrifyingly
Avatar
I know right
6:45 PM
it works so i'm happy
Avatar
does it impact performance?
6:45 PM
Well, creating the encrypted storage archive can take a lot of time
6:45 PM
5 mins on extreme cases
6:45 PM
But once it's done it is fast to mount
Avatar
i did ums 0 mmc 0 and i try to mount the partition and i cant (edited)
6:46 PM
do i need to format it?
Avatar
Avatar
Szybet
this looks terrifyingly
Avatar
Avatar
Szybet
do i need to format it?
yes
Avatar
also, why only one partition is showing in dolphin
Avatar
Avatar
tux-linux
yes
ext4?
Avatar
mkfs.ext4 -O "^metadata_csum" /dev/mmcblk0p3
6:47 PM
do the same for p1, p2 and p4
Avatar
Avatar
Szybet
also, why only one partition is showing in dolphin
because the other ones aren't formatted
Avatar
Avatar
tux-linux
because the other ones aren't formatted
this one isin't too
Avatar
And partition 1 is the only one that still starts at the same sector
Avatar
Avatar
tux-linux
mkfs.ext4 -O "^metadata_csum" /dev/mmcblk0p3
is it with the size 128 Mb?
Avatar
yes
Avatar
whot is in the 500 Mb partition stored?
Avatar
After that: Clone the emu repo Grab overlaymount-rootfs.squashfs from sd/ directory, sign it the same way you did with rootfs.squashfs and put the two files in p3 as well
Avatar
Avatar
Szybet
whot is in the 500 Mb partition stored?
recoveryfs
Avatar
Avatar
tux-linux
recoveryfs
okay
Avatar
https://youtu.be/KaBj7acHRHk?t=2010 See here, it's a serial log from the Touch C, the recovery partition is featured in the middle of the section
Avatar
Avatar
tux-linux
After that: Clone the emu repo Grab overlaymount-rootfs.squashfs from sd/ directory, sign it the same way you did with rootfs.squashfs and put the two files in p3 as well
where is the sd directory? in which repo?
Avatar
emu repo
Avatar
Avatar
tux-linux
https://youtu.be/KaBj7acHRHk?t=2010 See here, it's a serial log from the Touch C, the recovery partition is featured in the middle of the section
okay, it takes some time to launch it
Avatar
Avatar
tux-linux
emu repo
wait, does it run on the kobo using the emulator?
Avatar
Avatar
Szybet
wait, does it run on the kobo using the emulator?
No
6:56 PM
It's just that the file I want you to put there is available in this repo
Avatar
confusing
6:57 PM
whot is this file?
Avatar
It's a helper which provides squashfuse, unionfs-fuse and overlayfs-fuse binaries
6:58 PM
Was too big to put in the initrd
Avatar
"helper"?
Avatar
Basically a mini Alpine chroot
Avatar
oh okay (edited)
Avatar
you can mount it if you want, to see
6:59 PM
mount overlaymount-rootfs.squashfs /mnt
Avatar
Avatar
tux-linux
mount overlaymount-rootfs.squashfs /mnt
already looked into it
👍 1
Avatar
Avatar
Szybet
Click to see attachment 🖼️
so its done
Avatar
alright
7:00 PM
I'll set up the kernel config and we can have a try with what you have inside currently
7:01 PM
Meanwhile cat sd/user.sqsh.* > sd/user.sqsh sudo unsquashfs -f -d [location-of-p4]/ sd/user.sqsh (edited)
7:02 PM
It's nice, the Nia has the same PPI as the Glo and Aura SE, so supporting it will be easier since all the configs are there for devices of 1024x768 resolution
Avatar
Avatar
tux-linux
Meanwhile cat sd/user.sqsh.* > sd/user.sqsh sudo unsquashfs -f -d [location-of-p4]/ sd/user.sqsh (edited)
cat?
Avatar
Avatar
Szybet
cat?
Assemble multiple files user.sqsh was too big for GitHub (edited)
Avatar
weird way to do that
Avatar
I know
7:02 PM
I didn't find another one
7:02 PM
But it works no problem
Avatar
whot is p4?
Avatar
userdata
7:03 PM
Also, X11/KoBox images as well as GUI bundle
7:03 PM
and other things
Avatar
from where i get it
7:04 PM
i dont really understand
Avatar
Avatar
Szybet
from where i get it
In the emu repo?
7:05 PM
Same place where you found overlaymount-rootfs.squashfs
Avatar
sudo unsquashfs -f -d sd/user.sqsh sd/user.sqsh
7:05 PM
this doesn't see, right
Avatar
what
7:06 PM
sudo unsquashfs -f -d /run/media/szybet/wherever/is/your/p4/mounted sd/user.sqsh
Avatar
partition 4?
Avatar
yes
Avatar
now i understand
Avatar
its done
7:15 PM
but sync takes time now
Avatar
normal
7:15 PM
it's like 3G of data
Avatar
the sd card is 7Mb/s max
7:15 PM
thats big
Avatar
yes
7:16 PM
I'm setting up the kernel config now
Avatar
would you like to have the default one and modify it?
Avatar
i already have it
Avatar
from where?
Avatar
in the kernel source
Avatar
there was it?...
Avatar
arch/arm/configs/imx_v7_kobo_defconfig
7:21 PM
i used the config from /proc/config.gz
Avatar
oh; i need one thing
Avatar
where were the dmesg logs?
7:22 PM
I have to get the cmdline
Avatar
Kobo nia ereader with audio added. Contribute to Szybet/kobo-nia-audio development by creating an account on GitHub.
Avatar
Avatar
tux-linux
I have to get the cmdline
hm? whots that
Avatar
ok I have it
7:23 PM
console=ttymxc0,115200 rootwait rw no_console_suspend hwcfg_p=0x8ffffe00 hwcfg_sz=110 waveform_p=0x8ff71a00 waveform_sz=582529 ntxfw_p=0x8ff71400 ntxfw_sz=1034 mem=255M boot_port=1 rootfstype=ext4 root=/dev/mmcblk0p1 quiet Args passed to the kernel at boot
Avatar
ah those
7:27 PM
could you enable usb options? usb otg, chipidea controller
Avatar
Well, not in InkBox default config But you can change it It's quite easy
Avatar
okay, i will do it later
Avatar
it seems already enabled btw
7:35 PM
Maybe you can look into USB_AUDIO
Avatar
sounds good
7:35 PM
first i need it to register any usb device as host
7:36 PM
you can look at dmesg-usb at whot I have achieved already and whots the problem (edited)
Avatar
Ok, it's ready
7:44 PM
pull the repo
Avatar
Avatar
tux-linux
env GITDIR=/home/build/inkbox/kernel TOOLCHAINDIR=/home/build/inkbox/kernel/toolchain/arm-nickel-linux-gnueabihf/ THREADS=16 TARGET=arm-nickel-linux-gnueabihf scripts/build_kernel.sh n306 root
And redo this
7:45 PM
Make sure this time that your kernel repo is in /home/build/inkbox/kernel
Avatar
Avatar
tux-linux
Make sure this time that your kernel repo is in /home/build/inkbox/kernel
must this be the exact same path?
7:50 PM
fakeroot is a good idea to implement in the future (edited)
7:51 PM
well yes it must AS arch/arm/vfp/vfphw.o ./scripts/gen_initramfs_list.sh: Cannot open '/home/build/inkbox/kernel/initrd/busybox-1.32.1/_install-n306' make[1]: *** [usr/Makefile:73: usr/initramfs_data.cpio.xz] Błąd 1 make: *** [Makefile:947: usr] Błąd 2 make: *** Oczekiwanie na niezakończone zadania....
7:51 PM
i will do a symlink
7:55 PM
done
8:00 PM
propably now flash it?
Avatar
Avatar
Szybet
must this be the exact same path?
yes
Avatar
already compiled
Avatar
Avatar
Szybet
propably now flash it?
dd if=zImage-root of=/dev/mmcblk0 bs=512 seek=81920
Avatar
Well, now try to boot
8:03 PM
Please post boot log
8:03 PM
There will be errors
8:04 PM
I just want to know if kernel/initrd works fine
8:04 PM
bootloop
Avatar
shit
8:04 PM
welp
8:04 PM
we have a problem
Avatar
i dont know whot you changed so i cant really help
8:05 PM
maybe i have done something wrong
8:06 PM
probably related to load size
8:07 PM
it is
8:07 PM
kernel weighs 9.5M right?
8:07 PM
yes
Avatar
ok so it's load size
Avatar
its bad that it could't be more
8:08 PM
new devices, more hardware features ad the kernel will be bigger
Avatar
Delete kernel/initrd/n306/opt/firmware.sqsh
8:08 PM
And recompile the kernel
Avatar
Avatar
Szybet
its bad that it could't be more
It can be more
Avatar
so why it is not working?
Avatar
Max kernel size we could have would be 11.5M
Avatar
Avatar
Szybet
so why it is not working?
Because load size was set to 18432 = 9.4M
Avatar
whot is load size
Avatar
I want to try to strip down the kernel before increasing load size
8:10 PM
Number of sectors/bytes U-Boot reads from MMC to load kernel
Avatar
Avatar
tux-linux
Number of sectors/bytes U-Boot reads from MMC to load kernel
oh
8:10 PM
and it cant be more than actual file size?
8:11 PM
done, flash it?
Avatar
Avatar
Szybet
and it cant be more than actual file size?
yes
Avatar
Avatar
Szybet
done, flash it?
yes
8:12 PM
what's its size?
Avatar
wow that's tight
8:13 PM
let's see
Avatar
it stops at starting kernel
8:16 PM
ntx_gpio_get_value(404) : error parameter ! null ptr ! ESDin=0,UPGKey=-1,PWRKey=0,USBin=0x1,BootESD=0,MenuKey=0 mmc read 0x8ffffc00 0x37ff 0x1 MMC read: dev # 0, block # 14335, count 1 ... 1 blocks read: OK mmc read 0x8ff71a00 0x3800 0x472 MMC read: dev # 0, block # 14336, count 1138 ... 1138 blocks read: OK mmc read 0x8ff71800 0x405 0x1 MMC read: dev # 0, block # 1029, count 1 ... 1 blocks read: OK [WARNING] Binaries load sequence should Lo->Hi ! mmc read 0x8ff71400 0x406 0x3 MMC read: dev # 0, block # 1030, count 3 ... 3 blocks read: OK Kernel RAM visiable size=255M->255M ntx_gpio_init():R [ERROR] GPIO group number error (0)!! ntx_gpio_init():B [ERROR] GPIO group number error (0)!! hwcfg rootfstype : 2 hwcfg partition type : 2,bootmode=0 ntx_prebootm : cmd=setenv bootargs ${bootargs} hwcfg_p=0x8ffffe00 hwcfg_sz=110 waveform_p=0x8ff71a00 waveform_sz=582529 ntxfw_p=0x8t Kernel image @ 0x80800000 [ 0x000000 - 0x95e370 ] ## Flattened Device Tree blob at 83000000 Booting using the fdt blob at 0x83000000 Using Device Tree in place at 83000000, end 8300d274 Starting kernel ... (edited)
8:16 PM
after a while its rebooting
8:16 PM
but it stops for some secons at starting kernel
Avatar
hmm
Avatar
Avatar
tux-linux
yes
thats bad... changing the kernel will be pain
8:17 PM
on the stock firmware it wasn't like that?
Avatar
yes, it can be more than the actual file size
8:18 PM
that's what I meant
Avatar
I forgot something
Avatar
so just update u-boot?
Avatar
Avatar
tux-linux
I forgot something
whot?
Avatar
GITDIR="${PWD}" scripts/make_devicenodes.sh
8:18 PM
in kernel repo
8:18 PM
then recompile kernel
8:18 PM
maybe will it work (edited)
8:20 PM
i first see something like this
Avatar
yes
8:21 PM
It's for making device nodes in /dev
8:21 PM
Such as the console ttymxc0
8:21 PM
Without that node, the kernel might hang
8:21 PM
Which I think is what happened here
Avatar
data abort
Avatar
Ok, don't know what to say
8:30 PM
hang on
8:32 PM
@andi , if you have a clue, I'm all ears
Avatar
maybe i will write the stock kernel to that location to see if it boots?
Avatar
you'd need to recompile u-boot
Avatar
to change load sector
8:33 PM
oh
8:33 PM
yeah you could try the stock kernel
8:33 PM
at sector 81920
Avatar
that whot i said
8:33 PM
i will try it
Avatar
sure
Avatar
a buetiful kernel panink
8:35 PM
Starting kernel ... /cpus/cpu@0 missing clock-frequency property sy7636-pmic sy7636-pmic: request vcom gpio failed (-16)! sy7636-pmic sy7636-pmic: request powerup gpio failed (-16)! syscon-poweroff 20cc000.snvs:snvs-poweroff: pm_power_off already claimed 80021934 ntx_machine_poweroff PMU: ricoh61x_battery_probe : version is RICOH61x_BATTERY_VERSION: 2014.02.21 V3.1.0.0-Solution1 2015/02/09 ==== calc_soc_by_voltageMethod E60U22 ==== imx6ul-pinctrl 2290000.iomuxc-snvs: pin MX6ULL_PAD_SNVS_TAMPER3 already requested by 21f8000.i2c; cannot claim for gpio-keys imx6ul-pinctrl 2290000.iomuxc-snvs: pin-5 (gpio-keys) status -22 imx6ul-pinctrl 2290000.iomuxc-snvs: could not request pin 5 (MX6ULL_PAD_SNVS_TAMPER3) from group gpio_snvs_keys_grp on device 22900s gpio-keys gpio-keys: Error applying setting, reverse things back Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,1) ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,1) imx_epdc_v2_fb 228c000.epdc: Cleared LUT complete for init update
Avatar
that's good
8:35 PM
it makes sense
Avatar
so the kernel is wrong
Avatar
i don't know why it doesn't work with inkbox
Avatar
maybe your kernel config was wrong?
8:37 PM
compare your config without modyfication with this one that works in 100% https://github.com/Szybet/kobo-nia-audio/blob/main/kernels/self-compiled-oryginal/config-oryginal-kernel
Kobo nia ereader with audio added. Contribute to Szybet/kobo-nia-audio development by creating an account on GitHub.
Avatar
I highly doubt it, never seen a wrong config that triggers a data abort in U-Boot
Avatar
maybe the kernel has some wrong headers at beginning?
Avatar
no idea
8:38 PM
i'll concentrate on the aura 2 for some moments, I'll try andi1's kernel
8:38 PM
will come back in a short time
Avatar
okay, sure
Avatar
Avatar
tux-linux
will come back in a short time
does it mean today or in the nearest future?
Avatar
today
8:40 PM
won't take long
8:40 PM
10mins
Avatar
what if you delete initrd/n306/opt/splash-rootfs.tar.xz?
Avatar
one sec
9:00 PM
yes, thats progress
9:00 PM
```
Avatar
yaaay
Avatar
whot was the problem?
Avatar
what's the size of your compiled kernel?
9:02 PM
M
Avatar
What's the latest commit that shows up in git log?
Avatar
change kernel config
9:04 PM
Avatar
What's git status?
9:05 PM
it says its up to date
9:05 PM
in master
9:06 PM
you forgot to push?
Avatar
pull again and execute make_devicenodes again
9:08 PM
have in mind the repo has some files deleted that you said before
Avatar
So now there are nodes in initrd/n306/dev?
Avatar
Avatar
Szybet
have in mind the repo has some files deleted that you said before
no problems, a git reset --hard will get them back
Avatar
Avatar
tux-linux
So now there are nodes in initrd/n306/dev?
Avatar
Avatar
tux-linux
no problems, a git reset --hard will get them back
so i do it?
Avatar
no (not yet) (edited)
Avatar
Avatar
Szybet
Click to see attachment 🖼️
Nice, now recompile the kernel
Avatar
and flash it?
Avatar
yes
9:15 PM
now i noticed that the screen refreshed, i dont know if it was done before using inkbox kernel
Avatar
pull again
9:18 PM
recompile again
9:18 PM
it should work
9:18 PM
I added init argument to cmdline
Avatar
Avatar
Szybet
now i noticed that the screen refreshed, i dont know if it was done before using inkbox kernel
good
Avatar
Starting kernel ... [ 0.004763] /cpus/cpu@0 missing clock-frequency property [ 0.423820] sy7636-pmic sy7636-pmic: request vcom gpio failed (-16)! [ 0.423864] sy7636-pmic sy7636-pmic: request powerup gpio failed (-16)! [ 5.534496] syscon-poweroff 20cc000.snvs:snvs-poweroff: pm_power_off already claimed 80021c08 ntx_machine_poweroff [ 5.545643] PMU: ricoh61x_battery_probe : version is RICOH61x_BATTERY_VERSION: 2014.02.21 V3.1.0.0-Solution1 2015/02/09 [ 5.610660] ==== calc_soc_by_voltageMethod E60U22 ==== [ 5.841222] imx6ul-pinctrl 2290000.iomuxc-snvs: pin MX6ULL_PAD_SNVS_TAMPER3 already requested by 21f8000.i2c; cannot claim for gps [ 5.856657] imx6ul-pinctrl 2290000.iomuxc-snvs: pin-5 (gpio-keys) status -22 [ 5.863820] imx6ul-pinctrl 2290000.iomuxc-snvs: could not request pin 5 (MX6ULL_PAD_SNVS_TAMPER3) from group gpio_snvs_keys_grp s [ 5.878155] gpio-keys gpio-keys: Error applying setting, reverse things back mount: mounting /dev/mmcblk0p1 on /mnt failed: Invalid argument umount: can't unmount /mnt: Invalid argument Linux inkbox 4.1.15 #1 SMP PREEMPT Sat Feb 19 21:21:19 CET 2022 armv7l GNU/Linux InkBox OS, kernel build 3NMth0qo Copyright (C) 2021-2022 Nicolas Mailloux <nicolecrivain@gmail.com> Checking filesystems ... e2fsck 1.46.2 (28-Feb-2021) Error reading block 114689 (Invalid argument). Ignore error? yes Force rewrite? yes (edited)
9:25 PM
now im waiting for something to happen
9:26 PM
look at this specially: mount: mounting /dev/mmcblk0p1 on /mnt failed: Invalid argument umount: can't unmount /mnt: Invalid argument (edited)
Avatar
did you format p1?
Avatar
👀 one sec
9:29 PM
this 15 Mb one?
Avatar
yes
9:30 PM
please tell me that it wasn't formatted
9:30 PM
otherwise...
9:30 PM
we have a really big problem
Avatar
i did this now ._ .
9:30 PM
bruh
9:30 PM
soooo whots the problem
Avatar
Are you able to mount it on your PC?
Avatar
Avatar
Szybet
i did this now ._ .
yes, becouse of this
9:33 PM
now whot
Avatar
Try to restart
9:34 PM
The Kobo
Avatar
YAY!
Avatar
i see more errors then before
Avatar
Avatar
tux-linux
we have a really big problem
whots with that?
Avatar
you did not format p2
Avatar
Avatar
Szybet
whots with that?
nothing
Avatar
Avatar
Szybet
i see more errors then before
doesn't matter
9:38 PM
whotnow
Avatar
Now try git reset --hard
9:39 PM
And recompile the full package
Avatar
do the node thing one more time?
Avatar
I don't think it will be needed
9:39 PM
But it can't hurt
Avatar
if it doesn't work and leads to data abord, we'll try increasing the load size
Avatar
it stopped at starting kernel, now i wait but thats propably it
Avatar
git status?
9:50 PM
up to date
Avatar
Remove quiet from CONFIG_CMDLINE in kernel/config/config-n306
9:51 PM
That will probably be somewhat helpful
Avatar
i dont see anything after this change
10:01 PM
starting kernel and nothing more
11:13 PM
Then very likely the load size
Avatar
i think that too
Avatar
Edit bootloader/mx6ull-n306/board/freescale/mx6ull_ntx/ntx_comm.c Change DEFAULT_KERNEL_LOAD_SZ to 20480 (edited)
Avatar
這個檔案可被U-BOOT,開發板.c 板引入 um okay
Avatar
Avatar
tux-linux
Edit bootloader/mx6ull-n306/board/freescale/mx6ull_ntx/ntx_comm.c Change DEFAULT_KERNEL_LOAD_SZ to 20480 (edited)
there isin't somethink like that
11:19 PM
didn't find
11:20 PM
oh
11:20 PM
DEFAULT_LOAD_KERNEL_SZ
11:22 PM
how do i compile the bootloader?
11:23 PM
it was somewhere in my history
Avatar
Well, same way you compiled it yesterday
Avatar
oh, just make -j 6 CROSS_COMPILE=arm-nickel-linux-gnueabihf- ARCH=arm
11:23 PM
okay
11:30 PM
11:30 PM
Avatar
looks like fs error
11:31 PM
idk man im dumb...
Avatar
i dont think there is anything in recovery partition
11:32 PM
i dont remember putting anything there
11:32 PM
looks like the problem
Avatar
invalid argument
Avatar
awesome
11:36 PM
format p2
11:36 PM
copy overlaymount-rootfs.squashfs* files into it
11:39 PM
Also echo rooted | dd of=/dev/mmcblk0 bs=512 seek=79872
Avatar
Avatar
tux-linux
Also echo rooted | dd of=/dev/mmcblk0 bs=512 seek=79872
whots that
Avatar
To allow the device to run a root kernel
Avatar
whot does mean a root kernel
Avatar
A kernel allowing SSH, root login, access to the device, etc.
Avatar
ah this
11:43 PM
okay
11:46 PM
and after 2s: NOOOOOOOOO IT CRASHED
11:46 PM
Security policy not enforced; root access permitted. [ 21.852131] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null) Verifying root filesystem's digital signature ... Done. [ 26.770665] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null) [ 26.832827] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Opts: (null) FATAL: InkBox GUI root filesystem's signature is invalid! Aborting boot and powering off ... The system is going down NOW! Sent SIGTERM to all processes
11:46 PM
:/
Avatar
nice!
11:46 PM
Now, you have to sign gui_rootfs.isa in p4
11:47 PM
Important thing (as root): unsquashfs -f -d g gui_rootfs.isa cd g echo "n306" > opt/device rm ../gui_rootfs.isa mksquashfs . ../gui_rootfs.isa -b 1048576 -comp xz -Xdict-size 100% -always-use-fragments cd .. rm -rf g Then you can sign it openssl dgst -sha256 -sign private.pem -out gui_rootfs.isa.dgst gui_rootfs.isa (edited)
Avatar
Avatar
Szybet
and after 2s: NOOOOOOOOO IT CRASHED
Awesome!
Avatar
Avatar
tux-linux
Awesome!
error code 2
11:49 PM
where is gui rootfs?
Avatar
well, the splash
Avatar
it isin't in emu
Avatar
it was in user.sqsh
Avatar
Avatar
Szybet
it isin't in emu
it isn't (typo correction ;p) (edited)
Avatar
where did i unpack it...
Avatar
you unpacked it to p4
Avatar
oh right
Avatar
It is [p4]/gui_rootfs.isa
11:51 PM
its 23:50 and i dont think straight
Avatar
Avatar
tux-linux
Important thing (as root): unsquashfs -f -d g gui_rootfs.isa cd g echo "n306" > opt/device rm ../gui_rootfs.isa mksquashfs . ../gui_rootfs.isa -b 1048576 -comp xz -Xdict-size 100% -always-use-fragments cd .. rm -rf g Then you can sign it openssl dgst -sha256 -sign private.pem -out gui_rootfs.isa.dgst gui_rootfs.isa (edited)
can i do those steps not on the sd card?
11:52 PM
but you only unpack 40M worth of data
Avatar
oh then
11:55 PM
done, reboot?
11:55 PM
and whot is opt/device
11:55 PM
a identifier?
11:55 PM
to both
11:56 PM
it shouldn't work right away, there should still be errors but it'll probably be better
11:58 PM
so close...
11:59 PM
modules are missing
11:59 PM
i will be here for 20 more minutes, than i will go to sleep, tomorrow i should have some time but not so much that today (edited)
Avatar
I am currently editing the scripts in rootfs to include the Nia
12:01 AM
There is hope!
Avatar
there is
Avatar
i'll make you the missing ui bundle
12:03 AM
then you could probably see inkbox gui working
12:03 AM
uploading right now
Avatar
? i thinked that the problem are modules
12:04 AM
that's not essential
Avatar
so whot failed?
Avatar
ui bundle signature verification
12:05 AM
also the fact that the ui bundle is not there currently
12:06 AM
wget 23.163.0.39/bundles/private/update-n306.isa
Avatar
um okay, why i can't sign it by myself?
12:06 AM
using the key i generated
Avatar
I signed them using the keys you sent me
12:07 AM
So it will work
Avatar
oh okay
12:07 AM
whot did you need to update?
12:07 AM
and whot should i do
12:10 AM
Actually it's called update.isa but it isn't really an update
12:11 AM
cp update.isa [p4]/update/update.isa (edited)
Avatar
its a sign
12:11 AM
i know
Avatar
contains inkbox binary, qt libs and python
12:15 AM
don't forget to sync, then reboot and hopefully you should get an ui at some point
Avatar
yea, i put it in the wrong directory
12:15 AM
its hard to think
12:15 AM
i always sync
12:16 AM
so the update is actually a update, it updates the files
Avatar
well, not really but it doesn't really matter
Avatar
[ ok ] /usr/bin/inkbox.sh: line 32: can't create /sys/class/leds/pmic_ledsb/brightness: nonexistent dy [ ok ] Welcome to InkBox OS 1.9 Kernel 4.1.15 on armv7l (/dev/ttymxc0) inkbox login: [ 64.246990] IRQ gpio=0, IN_TEN_SYS=0xd1,PWR_ON_TIMES=0x5b,int_sts=0x40,when ig [ 64.255851] PMU2: Watchdog timeout triggered. =============== [ 67.445394] PMU: ricoh61x_displayed_work Half-Clear CC, init_pswr(100), cc_delta(0)
Avatar
nice
12:17 AM
so now look on the screen
Avatar
i have no GUI but there is login
Avatar
within some time you should see an ui appearing
Avatar
oh, now it is
Avatar
post a picture!!!
Avatar
very nice
12:18 AM
So orientation will be to fix (edited)
12:19 AM
Can you touch somewhere? does it appear to react?
12:19 AM
Login as root
12:19 AM
password is root
12:19 AM
echo 3 > /sys/class/graphics/fb0/rotate killall inkbox-bin
Avatar
i think the touch is not correct
Avatar
env QT_QPA_PLATFORM=kobo:touchscreen_rotate=90:touchscreen_invert_x=auto:touchscreen_invert_y=auto:logicaldpitarget=0 chroot /kobo /mnt/onboard/.adds/inkbox/inkbox.sh
Avatar
Avatar
tux-linux
echo 3 > /sys/class/graphics/fb0/rotate killall inkbox-bin
because of that try it and the last command above will restart inkbox
Avatar
Avatar
tux-linux
env QT_QPA_PLATFORM=kobo:touchscreen_rotate=90:touchscreen_invert_x=auto:touchscreen_invert_y=auto:logicaldpitarget=0 chroot /kobo /mnt/onboard/.adds/inkbox/inkbox.sh
it does not launch
Avatar
wait a bit? (edited)
12:21 AM
what's the error?
Avatar
now it worked?
12:22 AM
i think wrong formatted from discord
Avatar
so the touch is working?
12:23 AM
its working
Avatar
yay!!
Avatar
but i think it flickers too much
Avatar
is your power led still blinking?
Avatar
to much refreshers
12:24 AM
yes it is
Avatar
well inkbox is like that i guess?
12:24 AM
do you have a video so I could see?
Avatar
Avatar
Szybet
yes it is
Does running /opt/bin/shutdown_led turns it off? (edited)
Avatar
i entered library, snd there is sync in progress. for how long will it be like that
Avatar
Avatar
Szybet
i entered library, snd there is sync in progress. for how long will it be like that
You aren't connected to Wi-Fi so it should fail shortly
Avatar
it does not (edited)
Avatar
Otherwise killall inkbox-bin and relaunch that env command above
Avatar
Avatar
Szybet
it does not (edited)
the power light?
Avatar
the sync
Avatar
It does not fail?
Avatar
and serial isin't working
12:27 AM
12:27 AM
this is not good
12:27 AM
oh now
Avatar
bad serial connection
12:28 AM
try rearranging the wires
Avatar
yea, those wires are bad
Avatar
Avatar
tux-linux
Does running /opt/bin/shutdown_led turns it off? (edited)
no
12:29 AM
find /sys | grep led
Avatar
i could try a video
12:30 AM
but it stopped responding in scrable
Avatar
you can do it tomorrow otherwise
Avatar
Avatar
tux-linux
find /sys | grep led
I'd just need that output
Avatar
oh now it is
12:31 AM
Avatar
Ok; echo 1 > /sys/devices/platform/leds/leds/GLED; echo 0 > /sys/devices/platform/leds/leds/GLED
Avatar
yes, it turned off
👍 1
12:34 AM
its hard to click the file button in the paint app and i cant exit so i will post some drawings
12:35 AM
its slower than in plato, but yea its just a paint
12:36 AM
oh goodnes how it flickers when i entered maps
12:36 AM
thats not good
Avatar
Avatar
Szybet
oh goodnes how it flickers when i entered maps
It does that with other Kobos too
Avatar
thats not good, and not usable
Avatar
But I was talking about a video showing the refresh
Avatar
Avatar
Szybet
thats not good, and not usable
Well, light maps is not really the main purpose of InkBox
12:37 AM
how do i exit this app
Avatar
you can't
Avatar
whot XD?
Avatar
But relaunch InkBox from cmd (edited)
12:38 AM
After killall lightmaps lightmaps-bin (edited)
Avatar
done, but its stupid
Avatar
I know
Avatar
the touch is not working?
12:40 AM
after i relaunched
Avatar
Is there a dmesg random kernel trace?
Avatar
the dmesg is really long...
12:41 AM
392.21 KB
Avatar
Are you sure it doesn't work?
12:42 AM
i forst launched inkbox and then killed maps, maybe becouse of this?
Avatar
maybe
12:42 AM
kill inkbox-bin and relaunch it
12:43 AM
Maybe could you want to add QT_LOGGING_RULES=qt.qpa.input to env args
Avatar
relaunched it, works
12:47 AM
idk why but the serial connection isin't great, for example when i paste the command only the half goes there
12:47 AM
and too much messages but that can be disabled
12:47 AM
Nice that it works
12:47 AM
Almost finished updating my scripts
12:48 AM
Then I'll update cpp code for GUI and it will be fully ported! (edited)
12:48 AM
thanks for contributing
12:48 AM
come back tomorrow, we can test further some things
Avatar
i thank you too
👍 1
Avatar
Avatar
tux-linux
come back tomorrow, we can test further some things
i will, but i wont have that much time than today
👍 1
12:50 AM
actually now it works good
12:50 AM
maybe the first launch was faulty
Avatar
thanks
12:51 AM
if you want you can pull the rootfs repo
12:51 AM
updated the scripts
Avatar
im going to sleep now
👍 1
12:51 AM
i will do it tomorrow
Avatar
it flashes alright
12:52 AM
no problem
Avatar
now i have some time
Avatar
@andi i have a question, its described here: https://github.com/kobolabs/Kobo-Reader/issues/116 in short, i think that the cpu handles usb support without any aditional chip, so could you check in the datasheet if it has support for host mode? not only gadget
First, I want to thank that this repository exists, I really appreciate that, It made kobo better than other ereaders on the market So here is my question, is it possible to use the kobo nia as a u...
Avatar
In a random datasheet on the internet i see only usb otg and something about /dev/host
Avatar
usb storage is not working
12:48 PM
but i didn't updated
Avatar
and i dont know how to add books?
1:09 PM
i pasted them in gutenberg directory
1:09 PM
and nothing
Avatar
mount [p4]/onboard /mnt
2:58 PM
Put your books in there
2:58 PM
It's normal that USB storage isn't working yet We didn't compile modules
Avatar
you could just write the instructions for that, i will make it in the future
Avatar
Basically make ARCH=arm CROSS_COMPILE=arm-nickel-linux-gnueabihf- modules
3:11 PM
Then make ARCH=arm CROSS_COMPILE=arm-nickel-linux-gnueabihf- INSTALL_MOD_PATH=/tmp/modules And make squashfs of this directory
3:13 PM
But I'll make you the archive It's located in the initrd, in opt/modules.sqsh
Avatar
I checked quickly the pdf preview, its better than in plato and faster than in koreader but the sliders sometimes dont respond, and it makes it unusable
👍 1
3:34 PM
the library didn't loaded correctly? idk
Avatar
sometimes it's difficult to reach them
3:34 PM
I pushed the modules to the kernel repo
Avatar
Avatar
Szybet
I checked quickly the pdf preview, its better than in plato and faster than in koreader but the sliders sometimes dont respond, and it makes it unusable
Faster? Better? Wow, I thought my PDF engine was the worst
Avatar
the file chooser is the worst part, its just not made for touchscreen, and especielly for eink
👍 1
3:36 PM
koreader is written in lua, so yea. and plato uses gestures not silders, and those gestures didn't worked for me
Avatar
Avatar
tux-linux
I pushed the modules to the kernel repo
So now you can recompile it, mass storage won't work right away but you can try to see if usbnet works (when connecting your Kobo via USB to your computer, it should show up as an Ethernet device) echo true > [p1]/flags/USBNET_ENABLE (edited)
3:36 PM
Also, before doing that, pull the rootfs repo and make a rootfs.squashfs again, sign it and copy it into p3
3:37 PM
I modified the CPP code yesterday, so I'll share a GUI bundle at 23.163.0.39 shortly
Avatar
i will try those modyfication next week, and if not in the next month
Avatar
i dont have time for this in the nearest time, school sucks (edited)
Avatar
Well, I can sure wait, but maybe I won't be able to support it in 1.9 directly
3:45 PM
But anyways, thanks for your time and if you happen to have some this week, please try and report back! P.S.: Updated GUI bundle now, available at http://23.163.0.39/bundles/private/update-n306.isa (edited)
Avatar
Avatar
Szybet
the file chooser is the worst part, its just not made for touchscreen, and especielly for eink
I don't really have an alternative, but you can search books with the search button, in "Local storage"
Avatar
Avatar
tux-linux
I don't really have an alternative, but you can search books with the search button, in "Local storage"
If inkbox wants to be used by normal users than this must dissapear (edited)
Avatar
Well, I mean, it isn't that bad
Avatar
it is it is
Avatar
In meantime when i dont have time to do anything, could you describe how Windows are working in inkbox? Is it xorg, is it fbink or combined?
Avatar
What's "Windows"?
Avatar
like the file chooser
5:18 PM
thats a window
Avatar
Main GUI is Qt+FBInk, and KoBox is X11
Avatar
the whot
Avatar
Well, KoBox is a way to run X11 in a Kobo
Avatar
oh okay
5:20 PM
so if i would develop an app, a seperate binary using fbink could it be launched as a window, like the file chooser?
5:30 PM
Would need to be a cli, gtk or Qt app
Avatar
why only gtk or qt? so i assume just a xorg app?
Avatar
Yeah
5:31 PM
Or Qt native
5:31 PM
As InkBox GUI does
Avatar
I have written some gui apps before, in https://github.com/emilk/egui so i think i could replace the file chooser with something bigger, nicer and more touch friendly
egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native - GitHub - emilk/egui: egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
Avatar
The GUI is integrated in Qt and would be difficult to replace
5:33 PM
See reader.cpp
Avatar
Avatar
tux-linux
The GUI is integrated in Qt and would be difficult to replace
i think that you call the file chooser, and get a path from it right?
Avatar
Yes
Avatar
so calling a external script and getting a string path from stdout would be easy too?
Avatar
I guess?
5:35 PM
But resources consuming too
Avatar
not much, rust is good at performance
5:36 PM
only the disk reading and some ram would be bad
5:36 PM
plato is the fastest ereader software out there, and its written in rust (edited)
5:39 PM
you dont show here those maps that were glitching out on my device, are they even working on yours?
Avatar
i looked up in the datasheet, the magic mw commands in the bootloader should do the same thing as on imx6sl or 6sll
Avatar
so whot it does?
8:37 PM
can you share this datasheet? i want usb host get to work and the datasheets on the internet are bad
Avatar
usb host: probably just debugfs...
8:37 PM
mw magic: it overwrites the default configuration to boot from
8:38 PM
for the next resets until power down
Avatar
Avatar
andi
usb host: probably just debugfs...
no, i get these logs after echo host > role https://github.com/Szybet/kobo-nia-audio/blob/main/logs/dmesg-usb
Kobo nia ereader with audio added. Contribute to Szybet/kobo-nia-audio development by creating an account on GitHub.
Avatar
and in that case it is some kind of manufacturing mode where you boot from usb
Avatar
Avatar
andi
mw magic: it overwrites the default configuration to boot from
oh nice
Avatar
you send uboot over usb
8:39 PM
so for devices with internal eMMC, it is the way to test a new u-boot before flashing
8:40 PM
cat /dev/zero >/dev/mmcblk0 also lets you end up in that mode
Avatar
cool to know, in that way even more ereaders could run inkbox
Avatar
or removing the internatl sdcard
Avatar
Avatar
Szybet
no, i get these logs after echo host > role https://github.com/Szybet/kobo-nia-audio/blob/main/logs/dmesg-usb
could you look at it? I would appreciate it
Avatar
hmm, did you apply external power supply?
Avatar
i powered the external device, but not the kobo
Avatar
at least on the devices I needed some y-shaped cable
Avatar
i ordered some usb ports to make a cable to power both of them, but i dont think thats the case?
8:42 PM
y-shaped?
Avatar
that works for me
Avatar
does this power the kobo, and the device at the same time?
Avatar
maybe thats it? why would it need it to be charged?
Avatar
there might be protection diodes letting stuff go to vbus, probably higher voltages at the data lines than on vbus might be a problem
Avatar
thats a good explanation
8:46 PM
does your cable also have the OTG ID pin wired to ground?
8:47 PM
usual, that is the signal to provide power at vbus
8:48 PM
but if that does not work, I would leave it alone to not confuse other devices
Avatar
Avatar
andi
usual, that is the signal to provide power at vbus
and to detect to which mode to switch, host or gadget
Avatar
but there you have the debugfs for
Avatar
yes, but some devices, and ic make it automaticly
Avatar
yes, correct, that is the way it should be
8:51 PM
thanks, i will try it
Avatar
I am using a similar setup at my bicycle, it charges via hub dynamo my ebookreader
8:52 PM
and my bicycle is a usb gadget providing gps and some other sensor data
Avatar
it actually works when its charging
9:37 PM
thanks
9:37 PM
:D
Avatar
Avatar
Szybet
you dont show here those maps that were glitching out on my device, are they even working on yours?
Yes they do
Avatar
hmmm, good but why not on nia
Avatar
No wifi yet?
Avatar
that makes sense :D
Avatar
Avatar
tux-linux
I pushed the modules to the kernel repo
where are they?
5:20 PM
and do i need to use the openssl thing with modules too?
5:20 PM
i maybe have some time now to do it
Avatar
Avatar
Szybet
where are they?
In initrd/n306/opt/modules.sqsh
Avatar
Avatar
Szybet
and do i need to use the openssl thing with modules too?
No
6:21 PM
Just recompile the kernel
6:22 PM
It should work (edited)
Avatar
Avatar
tux-linux
Just recompile the kernel
why
Avatar
Well, to have the new modules
6:22 PM
They are embedded in initrd which is embedded in the kernel
6:22 PM
They are mounted at boot at /modules
Avatar
why the kernel that i use now cant be used
Avatar
Because it has the old initrd
6:23 PM
Which modules are not for this device
Avatar
@tux-linux could i get privileges to pin messages in the chat?
9:26 PM
i want to make a guide and it will help to track the steps
Avatar
Will do, Discord preferences seem rather convoluted
Avatar
Well, i had some time, to less to install the modules but i started creating the guide: https://github.com/Szybet/kobo-nia-audio/blob/main/inkbox.md There are some points where @tux-linux could you please help? i writed there everything at the beginning to know mine point is to make inkbox more hacking friendly, not only for mine project but for everyone. Also discord is such a horrible place where knowledge gets pulled in into a black hole.
Kobo nia ereader with audio added. Contribute to Szybet/kobo-nia-audio development by creating an account on GitHub.
11:43 PM
There is no point to hack into kobo's software when there is inkbox, i think that could be the main "feature" of inkbox, not only open source, secure but also easy to understand and make your ereader like you would like with some tinkerink and developer skills (edited)
👍 1
Avatar
Thanks 🤩 Like, really, this is very useful I'll address your points shortly (somewhere this weekend, might I hope) and send a PR to your repo (edited)
Avatar
oooooh nia audio :O
Avatar
But I mean, Discord is not so bad for development. Since they introduced threads it's way easier to organize and sort things as we like so that they only focus on one subject.
Avatar
But the knowledge is getting list in a long run
Avatar
Avatar
dill
oooooh nia audio :O
A magnet connected thin module with lithium polimer battery at the back, with jack and usb support
Avatar
Avatar
tux-linux
Thanks 🤩 Like, really, this is very useful I'll address your points shortly (somewhere this weekend, might I hope) and send a PR to your repo (edited)
Thanks!
👍 1
Avatar
Kobo nia ereader with audio added. Contribute to Kobo-InkBox/kobo-nia-audio development by creating an account on GitHub.
Avatar
And im back
8:14 PM
why did you forked an entire repo just to edit one file... i will add some changes to my repo, with notes for you whot to add next
Avatar
well. because that's the way it should be?
Avatar
maybe make a pull request / push it to the repo then?
Avatar
isn't that what I did?
Avatar
oh, when you make a pull requests it forks the repo for you
8:16 PM
okay, my bad
👍 1
Avatar
i have added some points for you to clarify:
Kobo nia ereader with audio added. Contribute to Szybet/kobo-nia-audio development by creating an account on GitHub.
8:51 PM
now i want to make my ereader to work
8:52 PM
You could focus more on the "From sources" points, becouse it would be hard for me to write them, to reverse enginere your work
Avatar
Avatar
tux-linux
wget 23.163.0.39/bundles/private/update-n306.isa
i will apply them
Avatar
Avatar
tux-linux
But I'll make you the archive It's located in the initrd, in opt/modules.sqsh
I pulled the repo, and pasted modules.sqsh into p3
9:08 PM
9:08 PM
modules didn't work
9:09 PM
the gui is still rotated wrong
9:10 PM
i will try to recompile the kernel
Avatar
now the brightness does not work:
Avatar
Avatar
Szybet
i will try to recompile the kernel
the same
9:24 PM
The library button after sync gives me an error, i see only one book that I choosed earlier using the file manager (edited)
9:28 PM
Why does a EPUB take like 1s to change a page... weird. And its REALLY hard to click the home button in option, while reading a book (edited)
9:29 PM
Thats all i can do, im waiting for your instructions on how to make it work. I will have some time so i will apply your patches faster @tux-linux (edited)
9:34 PM
another one... after i tryied to shutdown, it gives me this information in serial: [ 941.008667] imx_epdc_v2_fb 228c000.epdc: waiting for EPD power down ,current state=1...
Avatar
i'm there
10:42 PM
That's the commit related to kernel sector & load size in the bootloader
Avatar
Okay, i will add it, thanks
Avatar
and that one
10:44 PM
Basically I just changed the load size from 18432 to 20480
Avatar
Avatar
Szybet
Why does a EPUB take like 1s to change a page... weird. And its REALLY hard to click the home button in option, while reading a book (edited)
Really? Usually it is pretty easy on my devices...
Avatar
Avatar
Szybet
The library button after sync gives me an error, i see only one book that I choosed earlier using the file manager (edited)
Did you connect to Wi-Fi? (edited)
10:46 PM
If you recompiled and flashed the kernel (edited)
Avatar
Avatar
tux-linux
Really? Usually it is pretty easy on my devices...
it clickes the info button
Avatar
Avatar
tux-linux
Did you connect to Wi-Fi? (edited)
nope, i dind't see a option to do that
Avatar
oooh
10:47 PM
wait
Avatar
Avatar
tux-linux
If you recompiled and flashed the kernel (edited)
the modules doesn't work
Avatar
what?
10:47 PM
define doesn't work
Avatar
Avatar
Szybet
Click to see attachment 🖼️
+ usb storage dosn't work too
Avatar
ok, modules error then
10:49 PM
what does ls -shal /modules output?
Avatar
Avatar
Szybet
I pulled the repo, and pasted modules.sqsh into p3
You don't paste modules.sqsh in p3, it's embedded in the initrd, at opt/modules.sqsh But if you recompiled the kernel then idk Did you pull the repo before?
Avatar
yes, i pulled
Avatar
Avatar
tux-linux
what does ls -shal /modules output?
one sec
10:55 PM
now the kernel does not boot...
10:55 PM
wtf?
Avatar
With what command did you compile the kernel?
Avatar
env GITDIR="${PWD}" TOOLCHAINDIR="${PWD}/toolchain/arm-nickel-linux-gnueabihf/" THREADS=$(($(nproc)*2)) TARGET=arm-nickel-linux-gnueabihf scripts/build_kernel.sh n306 root
10:57 PM
hm... do i need to do it manually?
Avatar
Ok, seems alright
10:57 PM
No
10:57 PM
Is it the first time you boot the kernel since
Avatar
Avatar
Szybet
another one... after i tryied to shutdown, it gives me this information in serial: [ 941.008667] imx_epdc_v2_fb 228c000.epdc: waiting for EPD power down ,current state=1...
this happened?
Avatar
look, its weird 1 flashed the kernel 2 booted from it, i described the problems above 3 poweroff 4 1 hour passes 5 its bricked
Avatar
what if you reboot?
Avatar
Well, hold down the power buttton for some seconds
10:59 PM
Also, what's the kernel's size?
Avatar
i have tryied it, but i will try it one more time
10:59 PM
Avatar
Should be alright
Avatar
look at this line: [ 7.824733] Modules linked in: [ 7.827893] CPU: 0 PID: 49 Comm: kworker/0:3 Not tainted 4.1.15 #1 [ 7.834128] Hardware name: Freescale i.MX6 Ultralite (Device Tree) [ 7.840357] Workqueue: events epdc_firmware_work_func
11:01 PM
something with modules
Avatar
No, Modules linked in: only displays the loaded modules. If there were some, it would say: Modules linked in: g_ether sdio_wifi_pwr 8189fs for example
Avatar
then idk
Avatar
So now it just says that no modules are loaded
11:02 PM
me too
11:02 PM
Can you boot Nickel? Do you have another SD card you could try Kobo factory image on?
Avatar
okay i will try, but it will take time, like 1h to write the image
Avatar
then wait
11:03 PM
Does your screen flash when it boots the kernel?
11:03 PM
Or it panics before?
Avatar
Avatar
tux-linux
Does your screen flash when it boots the kernel?
nope
11:03 PM
nope
Avatar
Try flashing the Nickel kernel at sector 81920 And see if it flashes It will panic (won't be able to find the rootfs) but it should flash iirc (edited)
Avatar
Starting kernel ... /cpus/cpu@0 missing clock-frequency property sy7636-pmic sy7636-pmic: request vcom gpio failed (-16)! sy7636-pmic sy7636-pmic: request powerup gpio failed (-16)! syscon-poweroff 20cc000.snvs:snvs-poweroff: pm_power_off already claimed 800217f0 ntx_machine_f PMU: ricoh61x_battery_probe : version is RICOH61x_BATTERY_VERSION: 2014.02.21 V3.1.0.0-Solutio9 ==== calc_soc_by_voltageMethod E60U22 ==== imx6ul-pinctrl 2290000.iomuxc-snvs: pin MX6ULL_PAD_SNVS_TAMPER3 already requested by 21f8000.is imx6ul-pinctrl 2290000.iomuxc-snvs: pin-5 (gpio-keys) status -22 imx6ul-pinctrl 2290000.iomuxc-snvs: could not request pin 5 (MX6ULL_PAD_SNVS_TAMPER3) from gros gpio-keys gpio-keys: Error applying setting, reverse things back Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Li. ---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kerne.
11:07 PM
nickel boots ok
Avatar
so screen flashes?
Avatar
Can you try reflashing InkBox kernel? Maybe something in the MMC was overwritten for whatever reason and it caused the error you posted before... (edited)
Avatar
what is at 2048? (edited)
11:15 PM
sector
11:15 PM
in inkbox
Avatar
81920
11:15 PM
nothing, InkBox uses sector 81920 for kernel
Avatar
there is nothing, really nothing?
Avatar
well, probably remnants of old nickel kernels I guess?
Avatar
hm, okay
Avatar
but nothing is loaded from there at boot
Avatar
after rewriting its the same
Avatar
Welcome to the Mysterious and Incredibly Painful to Resolve Issues World™️! And if you remove kernel/initrd/n306/opt/modules.sqsh, then recompile it, what happens?
Avatar
one sec
👍 1
11:20 PM
could it be possible to skip the modules, like integrate them into the kernel ( i mean in menuconfig * not m )
Avatar
No, because some can't always be loaded
11:21 PM
e.g., wi-fi modules
11:21 PM
otherwise battery would drain very fast
11:23 PM
11:23 PM
not good
Avatar
whatever that is
11:24 PM
@andi , do you have some insight on this? I'm lost
11:24 PM
hm
11:25 PM
Did you, at some point, write InkBox kernel to sector 2048 of the MMC?
11:25 PM
And there it could have overwritten some of the waveform, dtb, etc.
Avatar
Avatar
tux-linux
Did you, at some point, write InkBox kernel to sector 2048 of the MMC?
its possible, but you said there is nothing
11:25 PM
:D
Avatar
Well, after ~6MB of sector 2048, there are DTB, ntxfw, waveform and other blobs that allow the kernel to boot (that's why the kernel needs to be moved to sector 81920, otherwise there would be problems (edited)
Avatar
so now we know
11:26 PM
i will write 32 Mb of the old nickel image, and then write the inkbox bootloader
11:27 PM
is that all that i need?
Avatar
hmm
11:27 PM
Be sure to save the partition layout
11:27 PM
Writing the old nickel image on top of that will work, but it will overwrite the partition layout
11:28 PM
However, if you go into fdisk after that and re-partition the MMC as it was before, you'll be able to mount partitions again and nothing will be lost (don't format them though, just re-partition the MMC) (edited)
Avatar
where is the partition layout
11:28 PM
oh, like that
Avatar
Well, you can do fdisk -l
Avatar
i will make a copy of the whole sd card, and then do this
👍 1
Avatar
meantime you could look at the other problems, errors
Avatar
Well, if porting InkBox to the Nia leads to a hardware brick, better to solve this first
11:39 PM
(I don't say it's an hardware brick, but it might be for some obscure reason that I don't know about)
Avatar
this would be sad
11:44 PM
but whot module could brick it
11:46 PM
if you think this could be a brick, i will simply flash the entire nickel image
11:47 PM
also, can I dd the whole disk using ums from u-boot?
Avatar
yeah, but I don't think ums is that stable for such a big write
11:47 PM
I'd just take the SD out
12:54 AM
nickel booted
12:54 AM
its not bricked
Avatar
ok very nice
12:55 AM
Maybe MMC corruption then?
Avatar
tommorow i will restore inkbox, and the first 30Mb sector + flash the inkbox bootloader and we will see
👍 1
Avatar
Avatar
tux-linux
Maybe MMC corruption then?
idk, tommorow we will see
👍 1
Avatar
inkbox boots and shows error code 3
11:05 AM
there are all partitions exept p1
11:05 AM
and i cant create it Wybór (domyślnie e): p Wybrano partycję 4 Pierwszy sektor (2048-31116287, domyślnie 2048): 49152 Sector 49152 is already allocated.
11:06 AM
hmmm
11:06 AM
i will just clear the parition table
Avatar
kernel without modules booted:
11:27 AM
kernel with modules booted, but here are the errors again: [ ok ] * WARNING: clock skew detected! insmod: ERROR: could not load module /modules/arcotg_udc.ko: No such file or directory [ !! ] * ERROR: modules_init failed to start * Mounting onboard storage filesystem ... [ ok ] * Splash screen ... [ ok ] * Starting USBNet ... * USB networking is disabled. Please set the USBNET_ENABLE flag and try again. [ ok ] * WARNING: clock skew detected! insmod: ERROR: could not load module /modules/arcotg_udc.ko: No such file or directory [ !! ] * ERROR: modules_init failed to start
11:28 AM
here is the command that you requested: kobo:~# ls -shal /modules total 1K 0 drwxr-xr-x 5 user user 52 Feb 20 2022 . 1 drwxr-xr-x 29 root root 1.0K Jan 1 00:16 .. 0 drwxr-xr-x 4 user user 37 Feb 20 2022 drivers 0 drwxr-xr-x 3 user user 31 Feb 20 2022 fs 0 drwxr-xr-x 2 user user 32 Feb 20 2022 wifi kobo:~#
Avatar
Avatar
tux-linux
echo 3 > /sys/class/graphics/fb0/rotate killall inkbox-bin
i still need to do this :/
11:32 AM
usb storage does not work
11:32 AM
i dont know where is the wifi menu...
11:33 AM
but brightness works back, thats good
11:33 AM
system shutdown does not work
11:33 AM
so we are in the start, everything works exept modules @tux-linux
Avatar
Did you update the rootfs?
Avatar
how exactly?
Avatar
I added the Nia in all scripts
Avatar
you mean making a squash and replacing the one on the ereader? (edited)
Avatar
Yes
2:58 PM
And pulling the repo
Avatar
the rootfs is in the emu repo?
2:59 PM
In the rootfs repo
3:00 PM
env GITDIR="${PWD}" ./release.sh Does that remind you of something?
Avatar
this compresses the rootfs
Avatar
Avatar
Szybet
[root@ArchSzybet rootfs]# env GITDIR="${PWD}" ./release.sh Parallel mksquashfs: Using 8 processors Creating 4.0 filesystem on ../rootfs.squashfs, block size 1048576. [============================================================================\] 6979/6979 100% Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 1048576 compressed data, compressed metadata, compressed fragments, compressed xattrs, compressed ids duplicates are removed Filesystem size 73621.37 Kbytes (71.90 Mbytes) 34.22% of uncompressed filesystem size (215152.91 Kbytes) Inode table size 74379 bytes (72.64 Kbytes) 25.76% of uncompressed inode table size (288710 bytes) Directory table size 79735 bytes (77.87 Kbytes) 46.50% of uncompressed directory table size (171486 bytes) Number of duplicate files found 666 Number of inodes 8427 Number of files 6899 Number of fragments 131 Number of symbolic links 904 Number of device nodes 0 Number of fifo nodes 0 Number of socket nodes 0 Number of directories 624 Number of ids (unique uids + gids) 2 Number of uids 2 root (0) szybet (1002) Number of gids 2 root (0) szybet (1002) Root filesystem has been compressed. (edited)
.
Avatar
Avatar
tux-linux
openssl dgst -sha256 -sign private.pem -out rootfs.squashfs.dgst rootfs.squashfs
Sign it there And copy the two files in p3
Avatar
yea sure
3:01 PM
will this fix the modules?
Avatar
Yep
3:02 PM
Well it should
3:03 PM
I'll make you another GUI bundle too I added quite a lot of things to InkBox since two weeks ago
Avatar
the most important thing is the screen rotating
Avatar
It will be fixed
3:06 PM
https://github.com/Kobo-InkBox/gui-bundle FYI, you can now generate the bundle yourself, but it requires you to compile InkBox Qt code before, which is painful to setup, so probably better if I just send it to you
InkBox GUI bundle contents and generation script. Contribute to Kobo-InkBox/gui-bundle development by creating an account on GitHub.
Avatar
qt is pain to setup..
Avatar
Yes
3:08 PM
But it's not impossible
Avatar
its still pain
3:14 PM
wow, everything works
3:14 PM
wifi is there
3:14 PM
brightness too
3:15 PM
well usb storage does not work
Avatar
Very nice Let's see USB
3:15 PM
What happens if you do lsmod?
Avatar
Avatar
Szybet
wifi is there
It connects, really?
Avatar
Avatar
tux-linux
It connects, really?
haven't tried yet, but wifi networks are showing up
Avatar
It seems to be somewhat difficult to connect to some networks in InkBox for some reason
3:17 PM
(There it should use dhcpcd I think)
3:17 PM
hmmm
Avatar
Can you see something on your computer?
3:17 PM
dmesg | tail?
Avatar
Avatar
tux-linux
It seems to be somewhat difficult to connect to some networks in InkBox for some reason
isin't it just wpa-supplicant?
Avatar
and dhcpcd
3:19 PM
wpa_supplicant is used to actually connect to the network, and then dhcpcd is launched to obtain a DHCP lease
Avatar
on the pc in dmesg is nothing
3:21 PM
here is from inkbox:
3:21 PM
just usb plugged 1
Avatar
And lsmod?
Avatar
kobo:~# lsmod Module Size Used by 8189fs 1294344 0 sdio_wifi_pwr 593 0
Avatar
strange
3:21 PM
find /modules
3:23 PM
there is usb gadget
Avatar
ok, seems I didn't update the script for mass storage
3:24 PM
insmod /modules/drivers/usb/gadget/legacy/g_mass_storage.ko? (edited)
3:25 PM
Will probably lead to an error
Avatar
connection failed with wifi
Avatar
I'll test on my Libra which has the same kernel
Avatar
Avatar
Szybet
connection failed with wifi
Now try /usr/local/bin/wifi/connect_to_network.sh ssid_there passphrase_there
3:26 PM
And post output
Avatar
[root@ArchSzybet resources]# insmod /modules/drivers/usb/gadget/legacy/g_mass_storage.ko insmod: ERROR: could not load module /modules/drivers/usb/gadget/legacy/g_mass_storage.ko: No such file or directory
Avatar
huh?
3:26 PM
I meant, on the Kobo
3:26 PM
Not on your host
Avatar
the keyboard is horrible, or the touch is not accurate
Avatar
Avatar
tux-linux
huh?
wrong terminal...
Avatar
Avatar
Szybet
the keyboard is horrible, or the touch is not accurate
There could be a solution, we'll try it (newer platform plugin) Though it comes with a cost, we need to change more files and we have to rely on VNC graphics in X11 instead of directly printing damage events on the framebuffer with fbink_xdamage
Avatar
kobo:~# insmod /modules/drivers/usb/gadget/legacy/g_mass_storage.ko insmod: ERROR: could not insert module /modules/drivers/usb/gadget/legacy/g_mass_storage.ko: Ue kobo:~#
Avatar
Otherwise it displays very strangely, don't know why
Avatar
Avatar
Szybet
kobo:~# insmod /modules/drivers/usb/gadget/legacy/g_mass_storage.ko insmod: ERROR: could not insert module /modules/drivers/usb/gadget/legacy/g_mass_storage.ko: Ue kobo:~#
What's the error? Can't read the rest (edited)
Avatar
kobo:~# insmod /modules/drivers/usb/gadget/legacy/g_mass_storage.ko insmod: ERROR: could not insert module /modules/drivers/usb/gadget/legacy/g_mass_storage.ko: Unknown symbol in module kobo:~#
3:31 PM
kobo:~# /usr/local/bin/wifi/connect_to_network.sh hotspotttssss 12345678 ifconfig: ioctl 0x8913 failed: No such device Successfully initialized wpa_supplicant rfkill: Cannot get wiphy information ioctl[SIOCSIWAP]: Operation not permitted no such user dhcpcd dhcpcd-9.4.0 starting eth0: waiting for carrier timed out dhcpcd exited dhcpcd_fork_cb: truncated read 0 (expected 4) DHCP request failed.
Avatar
Ok, we'll try with udhcpc then
3:31 PM
udhcpc -i eth0?
Avatar
Avatar
Szybet
kobo:~# insmod /modules/drivers/usb/gadget/legacy/g_mass_storage.ko insmod: ERROR: could not insert module /modules/drivers/usb/gadget/legacy/g_mass_storage.ko: Ue kobo:~#
I'll get you back with module deps after testing on my Libra, hang on
Avatar
Avatar
tux-linux
There could be a solution, we'll try it (newer platform plugin) Though it comes with a cost, we need to change more files and we have to rely on VNC graphics in X11 instead of directly printing damage events on the framebuffer with fbink_xdamage
i dont understand, but in nickel the touchscreen was just a /dev/input/mouse1 device
3:32 PM
this worked: [root@ArchSzybet resources]# ssh root@10.42.0.28 The authenticity of host '10.42.0.28 (10.42.0.28)' can't be established. ED25519 key fingerprint is SHA256:58MR3tZxGQMSKnyf5y6N6F2scXOG2wQ7IC33dMsJmDA. This key is not known by any other names Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '10.42.0.28' (ED25519) to the list of known hosts. root@10.42.0.28's password: Welcome to InkBox! * Warning * Root filesystem is mounted read-only. Invoke `ifsctl mnt rootfs rw' to make it read-write. kobo:~# udhcpc -i eth0 udhcpc: started, v1.33.0 udhcpc: sending discover udhcpc: sending select for 10.42.0.28 udhcpc: lease of 10.42.0.28 obtained, lease time 3600 kobo:~#
Avatar
ok so that works
3:33 PM
I'll change it in the script
Avatar
those damn small sliders
3:33 PM
i simply cant use them
3:34 PM
in brightness, wifi select, pfg reader
3:34 PM
why cant those be bigger :/
Avatar
Maybe they could be It has to do with padding and DPI On older devices, they are monstrous because of the low screen resolution
3:35 PM
BTW, you can take screenshots with chroot /kobo fbgrab /tmp/dump.png
Avatar
wait, maybe ui scalling
Avatar
Avatar
tux-linux
BTW, you can take screenshots with chroot /kobo fbgrab /tmp/dump.png
thats cool
Avatar
What's cat /data/config/09-dpi/config?
Avatar
Avatar
tux-linux
What's cat /data/config/09-dpi/config?
187
Avatar
whoops
3:36 PM
hang on
Avatar
ui scalling factor has a slider to set it, and its hard too 😆
Avatar
echo 195 > /data/config/09-dpi/config
3:36 PM
Then rc-service inkbox_gui restart
3:37 PM
^ should take ~1m to launch
Avatar
UI scalling does not save
3:37 PM
the arrows to change the settings site are hard to click too
Avatar
Avatar
tux-linux
echo 195 > /data/config/09-dpi/config
still the same
Avatar
Maybe are you on a build where I didn't actually support the Nia
3:39 PM
cat /data/config/09-dpi/config?
Avatar
187 still
3:39 PM
weird
Avatar
echo 195 > /data/config/09-dpi/config killall inkbox-bin; env QT_QPA_PLATFORM=kobo chroot /kobo /mnt/onboard/.adds/inkbox/inkbox.sh (edited)
Avatar
kobo:~# echo 195 > /data/config/09-dpi/config kobo:~# kobo:~# killall inkbox-bin; chroot /kobo /mnt/onboard/.adds/inkbox/inkbox.sh Terminated iniparser: cannot open /mnt/onboard/.kobo/nightmode.ini cat: can't open '/mnt/onboard/.kobo/Kobo/Kobo eReader.conf': No such file or directory qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this probl. Available platform plugins are: kobo, vnc. Aborted kobo:~#
Avatar
oh
3:41 PM
edited command above
Avatar
well it worked
3:43 PM
its better
Avatar
ok, probably wrong build then
3:43 PM
It will last that way until you re-open Settings I guess
Avatar
but still i need to click hard to choose the 1 on the keyboard
Avatar
strange
Avatar
just maybe make a bigger keyboard
3:44 PM
or the ui scalling could work for it
Avatar
hmm
3:44 PM
Have a screenshot?
Avatar
of whot
3:44 PM
keyboard?
Avatar
yeah
3:49 PM
making a photo is faster
Avatar
Avatar
tux-linux
BTW, you can take screenshots with chroot /kobo fbgrab /tmp/dump.png
Don't you think that would be easier ;p?
3:49 PM
ah
Avatar
sending the image to pc is harder
Avatar
scp?
Avatar
usb storage doesn't work, wifi didn't wanted to connect kobo:~# udhcpc -i eth0 udhcpc: started, v1.33.0 udhcpc: sending discover udhcpc: sending discover udhcpc: sending discover udhcpc: sending discover udhcpc: sending discover udhcpc failed to get a DHCP lease udhcpc: sending discover udhcpc: sending discover udhcpc: sending discover udhcpc: sending discover udhcpc: sending discover udhcpc failed to get a DHCP lease ^C kobo:~#
Avatar
ah
3:51 PM
echo true > /boot/flags/USBNET_ENABLE
3:51 PM
reboot
3:51 PM
then the Kobo will show up as an Ethernet device when plugged in via USB to your computer
3:51 PM
And you can do ifconfig usb0 192.168.2.2, then ssh root@192.168.2.2 to connect
Avatar
okay okay
3:52 PM
i will know for the future
👍 1
Avatar
Avatar
Szybet
Click to see attachment 🖼️
Tried on my Glo which has the same screen resolution, no issues at all clicking "1"
3:53 PM
At least I did document this (usbnet): https://inkbox.ddns.net/wiki/index.php?title=Boot_flags (edited)
Avatar
well the keyboard is acceptable when the ereader is not placed horizontally on the table (edited)
3:58 PM
so skip that problem for now
Avatar
Avatar
Szybet
well the keyboard is acceptable when the ereader is not placed horizontally on the table (edited)
Probably touch input handler hardware issue
Avatar
maybe
4:00 PM
but its usable, needs some practice to use well
4:01 PM
what's next? what do we need to make nia fully usable? usb storage, wifi and?
Avatar
insmod /modules/drivers/usb/gadget/function/usb_f_mass_storage.ko insmod /modules/drivers/usb/gadget/legacy/g_mass_storage
4:01 PM
Does that work?
Avatar
Avatar
Szybet
what's next? what do we need to make nia fully usable? usb storage, wifi and?
it's pretty much it ;D
4:02 PM
Then I'll have to make the recoveryfs, but that will happen just before the release
Avatar
the brightness slider works great when the dpi is set to 195
👍 1
4:04 PM
sliders in pdf reader are acceptable
👍 1
Avatar
Avatar
tux-linux
insmod /modules/drivers/usb/gadget/function/usb_f_mass_storage.ko insmod /modules/drivers/usb/gadget/legacy/g_mass_storage
?
Avatar
kobo:~# insmod /modules/drivers/usb/gadget/function/usb_f_mass_storage.ko insmod: ERROR: could not insert module /modules/drivers/usb/gadget/function/usb_f_mass_storage.ko: Unknown symbol in module kobo:~# insmod /modules/drivers/usb/gadget/legacy/g_mass_storage insmod: ERROR: could not load module /modules/drivers/usb/gadget/legacy/g_mass_storage: No such file or directory kobo:~#
Avatar
ok, it's missing some deps
Avatar
do other kobo ereader have audio support ( i mean integrated jacks )?
Avatar
no
Avatar
so if i want add audio support to inkbox i need to fork the entire project right?
Avatar
insmod "/modules/fs/configfs/configfs.ko" insmod "/modules/drivers/usb/gadget/libcomposite.ko" insmod "/modules/drivers/usb/gadget/function/usb_f_mass_storage.ko insmod /modules/g_mass_storage.ko file="/data/storage/onboard" removable=y stall=0 (edited)
Avatar
Avatar
Szybet
so if i want add audio support to inkbox i need to fork the entire project right?
yeah, basically?
4:11 PM
But you have the release private key, so you can do pretty much all you want (edited)
Avatar
you wouldn't allow a switch in the settings that adds / dissables some 3 buttons in the ereader while reading, and a app to control playlists? (edited)
Avatar
Why not?
Avatar
becouse its bloat for most users
Avatar
If I can disable/enable them based on the device, no problem (edited)
Avatar
well, okay
4:12 PM
are the apps list a json list or smth, or is it hard coded?
Avatar
But make them in Qt
Avatar
Avatar
Szybet
are the apps list a json list or smth, or is it hard coded?
No, sorry ;p
4:12 PM
Hardcoded
Avatar
Avatar
tux-linux
No, sorry ;p
this needs to be changed
Avatar
But it's not very difficult to add one
Avatar
Avatar
tux-linux
But make them in Qt
yes i know, but the app maybe not
Avatar
Add a button and a label
Avatar
Avatar
tux-linux
But it's not very difficult to add one
it would be still easier to add a app without reinstalling the gui budle
Avatar
Avatar
Szybet
yes i know, but the app maybe not
If you do it in X11, it isn't hardcoded
4:13 PM
You can make your extension
4:13 PM
And it will show up automatically in KoBox apps
Avatar
i think making it bare metal fbink would be better for performance?
Avatar
yes
Avatar
so i will do a bare metal
Avatar
But Qt would be more flexible than FBInk honestly
4:14 PM
It already has all the widgets you need
4:15 PM
And don't even think of doing your app in Python, if that was what you were planning to
Avatar
Avatar
tux-linux
And it will show up automatically in KoBox apps
so there are automatically showed apps for x11 or how?
Avatar
Avatar
tux-linux
And don't even think of doing your app in Python, if that was what you were planning to
God forbid no python
Avatar
Python in embedded device is a PITA, because first it isn't a compiled language ok yeah you know the rest
Avatar
good choice (edited)
4:15 PM
Though I won't help you in cross-compiling rust ;p
Avatar
the plato project already made it
Avatar
Avatar
tux-linux
insmod "/modules/fs/configfs/configfs.ko" insmod "/modules/drivers/usb/gadget/libcomposite.ko" insmod "/modules/drivers/usb/gadget/function/usb_f_mass_storage.ko insmod /modules/g_mass_storage.ko file="/data/storage/onboard" removable=y stall=0 (edited)
Does that work?
Avatar
kobo:~# insmod "/modules/fs/configfs/configfs.ko" insmod: ERROR: could not insert module /modules/fs/configfs/configfs.ko: File exists kobo:~# [ 3995.928562] ==== DISABLE ibat ==== kobo:~# insmod "/modules/drivers/usb/gadget/libcomposite.ko" insmod: ERROR: could not insert module /modules/drivers/usb/gadget/libcomposite.ko: File exists kobo:~# insmod "/modules/drivers/usb/gadget/function/usb_f_mass_storage.ko > ^C kobo:~# insmod "/modules/drivers/usb/gadget/function/usb_f_mass_storage.ko" kobo:~# insmod "/modules/drivers/usb/gadget/legacy/g_mass_storage.ko" [ 4013.100897] no file given for LUN0 [ 4013.104348] g_mass_storage ci_hdrc.0: failed to start g_mass_storage: -22 insmod: ERROR: could not insert module /modules/drivers/usb/gadget/legacy/g_mass_storage.ko: Invalid parameters kobo:~# insmod "/modules/drivers/usb/gadget/legacy/g_mass_storage.ko" [ 4021.057430] no file given for LUN0 [ 4021.062868] g_mass_storage ci_hdrc.0: failed to start g_mass_storage: -22 insmod: ERROR: could not insert module /modules/drivers/usb/gadget/legacy/g_mass_storage.ko: Invalid parameters kobo:~# [ 4025.062738] ==== DISABLE ibat ==== * WARNING: you are stopping a boot service * Unmounting onboard storage filesystem ... [ ok ] * WARNING: you are stopping a boot service * Stopping USBNet ... rmmod: ERROR: Module /modules/g_ether is not currently loaded [ !! ] * ERROR: usbnet failed to stop [ 4054.385494] ==== DISABLE ibat ====
4:19 PM
no*** usb storage on the pc (edited)
Avatar
ok nice
Avatar
so it does not work
Avatar
Well there's progress
Avatar
rmmod all the modules you have loaded now
Avatar
can i just reboot?
Avatar
no
4:22 PM
because it will load them again with usbnet
Avatar
Avatar
tux-linux
insmod "/modules/fs/configfs/configfs.ko" insmod "/modules/drivers/usb/gadget/libcomposite.ko" insmod "/modules/drivers/usb/gadget/function/usb_f_mass_storage.ko insmod /modules/g_mass_storage.ko file="/data/storage/onboard" removable=y stall=0 (edited)
I edited the commands there so that it can work
Avatar
kobo:~# lsmod Module Size Used by usb_f_mass_storage 38079 0 libcomposite 44430 1 usb_f_mass_storage configfs 23581 3 libcomposite,usb_f_mass_storage 8189fs 1294344 0 sdio_wifi_pwr 593 0 kobo:~# so i: rmod usb_f_mass_storage rmod libcomposite rmod configfs right?
Avatar
All of them
Avatar
But yeah, the ones you suggested are the most relevant
Avatar
kobo:~# insmod "/modules/fs/configfs/configfs.ko" kobo:~# insmod "/modules/drivers/usb/gadget/libcomposite.ko" kobo:~# insmod "/modules/drivers/usb/gadget/function/usb_f_mass_storage.ko" kobo:~# insmod /modules/g_mass_storage.ko file="/data/storage/onboard" removable =y stall=0 insmod: ERROR: could not load module /modules/g_mass_storage.ko: No such file or directory kobo:~# insmod /modules/g_mass_storage.ko file="/data/storage/onboard" removable =y stall=0 insmod: ERROR: could not load module /modules/g_mass_storage.ko: No such file or directory kobo:~# hmm
4:26 PM
also, the 3 line miss a "
👍 1
Avatar
oh
4:27 PM
change /modules/g_mass_storage.ko to /modules/drivers/usb/gadget/legacy/g_mass_storage.ko
4:28 PM
now it works
Avatar
Nice!
Avatar
could you describe what you needed to do? (edited)
Avatar
Just load the necessary modules When on newer kernels, there are dependencies to make the function itself more portable instead of just throwing everything into one module like on older devices
Avatar
it adds more complecity
4:32 PM
but okay
👍 1
Avatar
Normally it's handled by modprobe
Avatar
oh, okay
Avatar
But when you have it scripted up it isn't a problem anymore
Avatar
that makes sense
4:34 PM
maybe the wifi choosing menu a little bigger? its smolllll
Avatar
Avatar
Szybet
maybe the wifi choosing menu a little bigger? its smolllll
I know right
Avatar
when i choose wifi, or a file i don't need to see anything else
Avatar
There isn't any way I found to do this
Avatar
Avatar
tux-linux
I know right
good
Avatar
Maybe it will be slightly bigger in the new UI bundle I made
Avatar
its qt right?
Avatar
I'll upload it now
4:35 PM
yeah
4:35 PM
sizePolicy things...
Avatar
not good
4:35 PM
but still
Avatar
ok uploaded
4:37 PM
Download this, copy it in /data/firmware/update.isa sync and reboot
Avatar
are you sure? on which partition is it?
Avatar
p4
4:41 PM
/data/firmware is a symlink to [p4]/update
Avatar
what should i test
4:43 PM
now
4:46 PM
usb storage does not work
Avatar
Did you update the bundle?
Avatar
i replaced the file
4:49 PM
so yes
Avatar
And restarted the device?
Avatar
i inserted it using u-boot and the booted
Avatar
Ok
4:50 PM
So is the dpi set to 195?
Avatar
Avatar
tux-linux
cat /data/config/09-dpi/config?
could i get privileges to pin messages, that i wouldn't need to scroll
4:51 PM
yes it is 195
Avatar
I tried to allow you but didn't find how
4:53 PM
Ok found it
4:53 PM
Try now (edited)
Szybet pinned a message to this channel. 3/6/2022 4:53 PM
Avatar
Now open settings
4:54 PM
Close settings
4:54 PM
And check dpi again
Avatar
the same
Avatar
Ok good
5:00 PM
Pull kernel repo (edited)
5:01 PM
I made a symlink for g_mass_storage in modules
5:01 PM
Recompile and flash it
Avatar
what is the max kernel size?
Avatar
~10.5M (edited)
Avatar
adding usb audio, and alsa support could take it
5:07 PM
not good
Avatar
An alternative would maybe be to put the kernel in a partition and extload it from U-Boot
5:08 PM
Or put the modules... somewhere else
Avatar
Avatar
tux-linux
Or put the modules... somewhere else
this this this this
Avatar
(well, alsa modules I mean)
Avatar
well this too
5:08 PM
usb storage does not work
Avatar
Because the tricky part is that the modules differ for each device
Avatar
Avatar
Szybet
usb storage does not work
not normal (edited)
5:09 PM
find /modules
Avatar
kobo:~# find /modules /modules /modules/drivers /modules/drivers/mmc /modules/drivers/mmc/card /modules/drivers/mmc/card/sdio_wifi_pwr.ko /modules/drivers/usb /modules/drivers/usb/gadget /modules/drivers/usb/gadget/function /modules/drivers/usb/gadget/function/u_ether.ko /modules/drivers/usb/gadget/function/usb_f_acm.ko /modules/drivers/usb/gadget/function/usb_f_ecm.ko /modules/drivers/usb/gadget/function/usb_f_ecm_subset.ko /modules/drivers/usb/gadget/function/usb_f_eem.ko /modules/drivers/usb/gadget/function/usb_f_fs.ko /modules/drivers/usb/gadget/function/usb_f_mass_storage.ko /modules/drivers/usb/gadget/function/usb_f_obex.ko /modules/drivers/usb/gadget/function/usb_f_rndis.ko /modules/drivers/usb/gadget/legacy /modules/drivers/usb/gadget/legacy/g_ether.ko /modules/drivers/usb/gadget/legacy/g_mass_storage.ko /modules/drivers/usb/gadget/libcomposite.ko /modules/fs /modules/fs/configfs /modules/fs/configfs/configfs.ko /modules/g_mass_storage.ko /modules/wifi /modules/wifi/8189fs.ko
Avatar
Oh I know
5:09 PM
I only insmod usb_f_mass_storage in inkbox
5:09 PM
which is not enough
5:10 PM
hang on; I'll change that
5:10 PM
lsmod?
Avatar
kobo:~# kobo:~# lsmod Module Size Used by kobo:~# lsmod Module Size Used by kobo:~# lsmod Module Size Used by kobo:~# lsmod Module Size Used by kobo:~# lsmod Module Size Used by kobo:~# lsmod Module Size Used by kobo:~# lsmod Module Size Used by kobo:~# lsmod Module Size Used by kobo:~# lsmod Module Size Used by kobo:~# lsmod Module Size Used by kobo:~#
5:10 PM
HMMMMMMMMM
Avatar
What
Avatar
exactly
Avatar
rc-service inkbox_gui restart
5:11 PM
And your will see insmod output on stdout
Avatar
Strange error with gled Anyways Try hitting connect button
5:12 PM
In GUI
5:13 PM
i will reboot
5:13 PM
and check one more time
👍 1
5:17 PM
the same result
Avatar
nothing on lsmod?
Avatar
nothing
Avatar
Please generate system report
5:20 PM
Settings -> Page 2 -> Generate system report
Avatar
can i do this throught cmd?
Avatar
No
5:20 PM
Well
5:20 PM
maybe
5:20 PM
/usr/local/bin/generate_system_report.sh
5:21 PM
yeah you can actually
5:21 PM
share the pdf file
Avatar
it will produce a pdf in onboard storage
5:23 PM
you will get errors but those are harmless
Avatar
your RTC needs to sync ;p
Avatar
Avatar
tux-linux
your RTC needs to sync ;p
all ereaders have problems with handling rtc
5:25 PM
it sucks
Avatar
yeah
5:26 PM
I see nothing wrong in the report
5:27 PM
What if you try insmod-ing the modules yourself?
Avatar
Avatar
Szybet
kobo:~# insmod "/modules/fs/configfs/configfs.ko" kobo:~# insmod "/modules/drivers/usb/gadget/libcomposite.ko" kobo:~# insmod "/modules/drivers/usb/gadget/function/usb_f_mass_storage.ko" kobo:~# insmod /modules/g_mass_storage.ko file="/data/storage/onboard" removable =y stall=0 insmod: ERROR: could not load module /modules/g_mass_storage.ko: No such file or directory kobo:~# insmod /modules/g_mass_storage.ko file="/data/storage/onboard" removable =y stall=0 insmod: ERROR: could not load module /modules/g_mass_storage.ko: No such file or directory kobo:~# hmm
those?
Avatar
yeah
Avatar
usb storage works
Avatar
ok
Avatar
dmesg?
5:32 PM
here is everything
Avatar
Ok, seems good
5:35 PM
5.91 MB
5:35 PM
On host: cd ~/Downloads busybox httpd -p 8000 -f On Kobo: rm /tmp/inkbox; wget your.computer.ip.there:8000/inkbox -O /tmp/inkbox; chmod +x /tmp/inkbox; umount -l -f /kobo/mnt/onboard/.adds/inkbox/inkbox-bin; mount --bind /tmp/inkbox /kobo/mnt/onboard/.adds/inkbox/inkbox-bin; killall inkbox-bin inkbox inkbox.sh; env QT_QPA_PLATFORM=kobo chroot /kobo /mnt/onboard/.adds/inkbox/inkbox.sh
5:36 PM
But first, rmmod all modules related to usb mass storage
Avatar
what is this binary?
Avatar
This basically bind-mounts a temporary binary for testing
5:37 PM
InkBox binary
5:37 PM
I added this code
Avatar
Avatar
tux-linux
On host: cd ~/Downloads busybox httpd -p 8000 -f On Kobo: rm /tmp/inkbox; wget your.computer.ip.there:8000/inkbox -O /tmp/inkbox; chmod +x /tmp/inkbox; umount -l -f /kobo/mnt/onboard/.adds/inkbox/inkbox-bin; mount --bind /tmp/inkbox /kobo/mnt/onboard/.adds/inkbox/inkbox-bin; killall inkbox-bin inkbox inkbox.sh; env QT_QPA_PLATFORM=kobo chroot /kobo /mnt/onboard/.adds/inkbox/inkbox.sh
it does not have wifi, so net over usb is needed?
Avatar
yeah
5:38 PM
can't you use udhcpc?
5:39 PM
try to connect, let dhcpcd fail and then connect with udhcpc
5:39 PM
Anyway I changed the scripts in the rootfs I'll push that once we fix mass storage
Szybet pinned a message to this channel. 3/6/2022 5:39 PM
5:41 PM
not funny
5:41 PM
maybe i will just push the binary using u-boot?
Avatar
did you /usr/local/bin/wifi/connect_to_wifi.sh before?
5:41 PM
question: is your power light still flashing?
Avatar
Avatar
tux-linux
question: is your power light still flashing?
no
Avatar
no really? how-
5:43 PM
ls -shal /sys/devices/platform/leds/leds/GLED
Avatar
okay it is
5:43 PM
im just blind
Avatar
ah
5:43 PM
okay
5:43 PM
echo 1 > /sys/devices/platform/leds/leds/GLED/brightness; echo 0 > /sys/devices/platform/leds/leds/GLED/brightness turns it off right?
Avatar
Avatar
Szybet
Click to see attachment 🖼️
That isn't possible
Avatar
Avatar
tux-linux
echo 1 > /sys/devices/platform/leds/leds/GLED/brightness; echo 0 > /sys/devices/platform/leds/leds/GLED/brightness turns it off right?
yes
Avatar
find /usr/local/bin
Avatar
Avatar
Szybet
yes
Ok, I forgot to put brightness in the path in inkbox.sh
Avatar
kobo:~# find /usr/local/bin/ /usr/local/bin/ /usr/local/bin/htmldoc /usr/local/bin/ota_update.sh /usr/local/bin/unionfs /usr/local/bin/wifi /usr/local/bin/wifi/toggle.sh /usr/local/bin/wifi/connect_to_network.sh /usr/local/bin/wifi/list_networks.sh /usr/local/bin/unionfsctl /usr/local/bin/generate_system_report.sh /usr/local/bin/gutenberg /usr/local/bin/gutenberg/fetch_catalog.sh /usr/local/bin/gutenberg/get_book.sh /usr/local/bin/gutenberg/get_latest_books.sh /usr/local/bin/gutenberg/search_catalog.sh /usr/local/bin/zsh-5.8.1 /usr/local/bin/htop /usr/local/bin/zsh /usr/local/bin/appvnc_start.sh
5:44 PM
connect to network, not wifi
Avatar
/usr/local/bin/wifi/connect_to_network.sh
Avatar
+ ssid and password
Avatar
but why couldn't it launch before?
Avatar
Avatar
tux-linux
but why couldn't it launch before?
wrong binary name you gived? (edited)
5:46 PM
kobo:~# /usr/local/bin/wifi/connect_to_network.sh hotspotttssss 12345678 ifconfig: ioctl 0x8913 failed: No such device Successfully initialized wpa_supplicant rfkill: Cannot get wiphy information ioctl[SIOCSIWAP]: Operation not permitted no such user dhcpcd dhcpcd-9.4.0 starting eth0: waiting for carrier timed out dhcpcd exited dhcpcd_fork_cb: truncated read 0 (expected 4) DHCP request failed. kobo:~# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever kobo:~# udhcpc -i eth0 udhcpc: ioctl 0x8933 failed: No such device kobo:~#
5:47 PM
i need to insmod the wifi module too
5:47 PM
what was his name
Avatar
/modules/wifi/8189fs.ko
5:48 PM
but
5:48 PM
it shouldn't do that
5:48 PM
cat /usr/local/bin/wifi/connect_to_network.sh
Avatar
still no eth0
5:48 PM
Avatar
dmesg and lsmod please
5:49 PM
this is scary...
Avatar
what if you do insmod /modules/drivers/mmc/card/sdio_wifi_pwr.ko
5:51 PM
oh ok
Avatar
\kobo:~# insmod /modules/drivers/mmc/card/sdio_wifi_pwr.ko kobo:~# lsmod Module Size Used by sdio_wifi_pwr 593 0 8189fs 1294344 0 usb_f_mass_storage 38079 0 libcomposite 44430 1 usb_f_mass_storage configfs 23581 3 libcomposite,usb_f_mass_storage kobo:~# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever 5: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 58:b0:d4:9d:a6:8e brd ff:ff:ff:ff:ff:ff kobo:~# \
5:51 PM
bingo
Avatar
Actually it auto-removes the modules upon failure to connect in the script
5:53 PM
it dissapered
5:53 PM
kobo:~# lsmod Module Size Used by usb_f_mass_storage 38079 0 libcomposite 44430 1 usb_f_mass_storage configfs 23581 3 libcomposite,usb_f_mass_storage kobo:~#
5:53 PM
dmesg:
5:54 PM
wifi 3v3 off
5:54 PM
weird
Avatar
Ok, I'll push a commit to the rootfs repo so you can get out of this mess with proper scripts
5:56 PM
Done
Avatar
pull rootfs repo, make a sqsh and sign, then put in on kobo?
Avatar
yes
Szybet pinned a message to this channel. 3/6/2022 5:59 PM
Szybet pinned a message to this channel. 3/6/2022 5:59 PM
Szybet pinned a message to this channel. 3/6/2022 6:01 PM
Avatar
done, what now
Avatar
Try connecting to Wi-Fi with the script again (edited)
Avatar
so /usr/local/bin/wifi/connect_to_network.sh hotspotttssss 12345678 and then udhcpc -i eth0 ?
Avatar
yep
Avatar
kobo:~# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 58:b0:d4:9d:a6:8e brd ff:ff:ff:ff:ff:ff inet 10.42.0.28/24 brd 10.42.0.255 scope global eth0 valid_lft forever preferred_lft forever
6:09 PM
yep, now what
Avatar
very good, it works
6:10 PM
try with the inkbox binary above
Avatar
Avatar
tux-linux
On host: cd ~/Downloads busybox httpd -p 8000 -f On Kobo: rm /tmp/inkbox; wget your.computer.ip.there:8000/inkbox -O /tmp/inkbox; chmod +x /tmp/inkbox; umount -l -f /kobo/mnt/onboard/.adds/inkbox/inkbox-bin; mount --bind /tmp/inkbox /kobo/mnt/onboard/.adds/inkbox/inkbox-bin; killall inkbox-bin inkbox inkbox.sh; env QT_QPA_PLATFORM=kobo chroot /kobo /mnt/onboard/.adds/inkbox/inkbox.sh
this
Avatar
Avatar
Szybet
kobo:~# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 58:b0:d4:9d:a6:8e brd ff:ff:ff:ff:ff:ff inet 10.42.0.28/24 brd 10.42.0.255 scope global eth0 valid_lft forever preferred_lft forever
Are you using a Wi-Fi hotspot with Gnome?
6:11 PM
Mine has the same subnet than yours ;p
Avatar
its kde
6:11 PM
they use the same thing for this propably
Avatar
ah
6:11 PM
Well, networkmanager, so makes sense, yeah
Avatar
its actually something else
6:12 PM
i looked at it once
Avatar
oh?
Avatar
its called dnsmasq
6:14 PM
in htop you can see the command arguments for it
6:14 PM
% ps aux | grep dnsmasq nobody 307584 0.0 0.0 21688 6808 ? S 15:23 0:00 /usr/bin/dnsmasq --conf-file=/dev/null --no-hosts --keep-in-foreground --bind-interfaces --except-interface=lo --clear-on-reload --strict-order --listen-address=10.42.0.1 --dhcp-range=10.42.0.10,10.42.0.254,60m --dhcp-lease-max=50 --dhcp-leasefile=/var/lib/NetworkManager/dnsmasq-wlp3s0.leases --pid-file=/var/run/nm-dnsmasq-wlp3s0.pid --conf-dir=/etc/NetworkManager/dnsmasq-shared.d szybet 482350 0.0 0.0 9548 2560 pts/7 S+ 18:14 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox dnsmasq 18:14 szybet@ArchSzybet /home/szybet
6:14 PM
i have the inkbox test binary
6:14 PM
launched
6:15 PM
what now, usb storage?
Avatar
Avatar
Szybet
% ps aux | grep dnsmasq nobody 307584 0.0 0.0 21688 6808 ? S 15:23 0:00 /usr/bin/dnsmasq --conf-file=/dev/null --no-hosts --keep-in-foreground --bind-interfaces --except-interface=lo --clear-on-reload --strict-order --listen-address=10.42.0.1 --dhcp-range=10.42.0.10,10.42.0.254,60m --dhcp-lease-max=50 --dhcp-leasefile=/var/lib/NetworkManager/dnsmasq-wlp3s0.leases --pid-file=/var/run/nm-dnsmasq-wlp3s0.pid --conf-dir=/etc/NetworkManager/dnsmasq-shared.d szybet 482350 0.0 0.0 9548 2560 pts/7 S+ 18:14 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox dnsmasq 18:14 szybet@ArchSzybet /home/szybet
oh cool
6:15 PM
yes
6:15 PM
try hitting "connect"
6:15 PM
then dmesg and lsmod
Avatar
does not work
Avatar
Well, it actually does something, great
Avatar
something
Avatar
[ 651.464636] g_mass_storage: Unknown symbol fsg_common_set_ops (err 0) [ 651.464680] g_mass_storage: Unknown symbol fsg_common_set_sysfs (err 0) [ 651.464704] g_mass_storage: Unknown symbol usb_get_function_instance (err 0) [ 651.464716] g_mass_storage: Unknown symbol fsg_common_run_thread (err 0) [ 651.464734] g_mass_storage: Unknown symbol usb_string_ids_tab (err 0) [ 651.464751] g_mass_storage: Unknown symbol fsg_common_free_luns (err 0) [ 651.464763] g_mass_storage: Unknown symbol usb_get_function (err 0) [ 651.464776] g_mass_storage: Unknown symbol usb_composite_unregister (err 0) [ 651.464788] g_mass_storage: Unknown symbol usb_put_function (err 0) [ 651.464800] g_mass_storage: Unknown symbol fsg_common_create_luns (err 0) [ 651.464813] g_mass_storage: Unknown symbol usb_add_function (err 0) [ 651.464826] g_mass_storage: Unknown symbol usb_composite_probe (err 0) [ 651.464842] g_mass_storage: Unknown symbol usb_composite_overwrite_options (err 0) [ 651.464854] g_mass_storage: Unknown symbol usb_otg_descriptor_alloc (err 0) [ 651.464867] g_mass_storage: Unknown symbol usb_put_function_instance (err 0) [ 651.464878] g_mass_storage: Unknown symbol fsg_common_set_cdev (err 0) [ 651.464892] g_mass_storage: Unknown symbol fsg_common_free_buffers (err 0) [ 651.464905] g_mass_storage: Unknown symbol usb_otg_descriptor_init (err 0) [ 651.464921] g_mass_storage: Unknown symbol fsg_common_set_nluns (err 0) [ 651.464934] g_mass_storage: Unknown symbol fsg_common_remove_luns (err 0) [ 651.464945] g_mass_storage: Unknown symbol usb_add_config (err 0) [ 651.464958] g_mass_storage: Unknown symbol fsg_common_set_inquiry_string (err 0) [ 651.464970] g_mass_storage: Unknown symbol fsg_common_set_num_buffers (err 0) [ 651.464982] g_mass_storage: Unknown symbol fsg_config_from_params (err 0)
Avatar
something
Avatar
So you're sure there's nothing in lsmod right?
Avatar
kobo:~# lsmod Module Size Used by 8189fs 1294344 0 sdio_wifi_pwr 593 0 kobo:~#
Avatar
cat /kobo/opt/inkbox_device
6:18 PM
ok
6:18 PM
why emu
6:18 PM
D:
Avatar
aaahaah
Avatar
echo n306 > /kobo/opt/inkbox_device
Avatar
relaunch inkbox and things will probably be better
Avatar
hm, how. i have the custom binary launched.... just /tmp/inkbox?
6:20 PM
and kill it before launching
Avatar
just re-launch the big command
6:20 PM
it will do everything for you
6:20 PM
it's the one I use for quick testing
tux-linux pinned a message to this channel. 3/6/2022 6:20 PM
Avatar
kobo:~# rm /tmp/inkbox; wget 10.42.0.1:8000/inkbox -O /tmp/inkbox; chmod +x /tmp /inkbox; umount -l -f /kobo/mnt/onboard/.adds/inkbox/inkbox-bin; mount --bind /t ^[[A^[[B^[[A^[[B^C kobo:~# ^C insmod: can't insert '/external_root/modules/fs/configfs/configfs.ko': File exists insmod: can't insert '/external_root/modules/drivers/usb/gadget/libcomposite.ko': File exists insmod: can't insert '/external_root/modules/drivers/usb/function/usb_f_mass_storage.ko': No such file or directory
6:22 PM
and it does not work
Avatar
ls /kobo/external_root/modules/drivers/usb/function/usb_f_mass_storage.ko
6:22 PM
well, it's progress!
6:22 PM
File exists mean the module is already loaded
Avatar
Avatar
tux-linux
File exists mean the module is already loaded
kobo:~# lsmod Module Size Used by libcomposite 44430 0 configfs 23581 2 libcomposite 8189fs 1294344 0 sdio_wifi_pwr 593 0 kobo:~#
Avatar
yep they are
6:23 PM
oh my bad I know the problem
Avatar
kobo:~# ls /kobo/external_root/modules/drivers/usb/function/usb_f_mass_storage.ko ls: /kobo/external_root/modules/drivers/usb/function/usb_f_mass_storage.ko: No such file or directory kobo:~# ls /kobo/external_root/modules/drivers/usb/gadget/ function/ legacy/ libcomposite.ko kobo:~# ls /kobo/external_root/modules/drivers/usb/gadget/ function/ legacy/ libcomposite.ko kobo:~# ls /kobo/external_root/modules/drivers/usb/gadget/function/u u_ether.ko usb_f_ecm_subset.ko usb_f_mass_storage.ko usb_f_acm.ko usb_f_eem.ko usb_f_obex.ko usb_f_ecm.ko usb_f_fs.ko usb_f_rndis.ko kobo:~# ls /kobo/external_root/modules/drivers/usb/gadget/function/usb_f_mass_storage.ko /kobo/external_root/modules/drivers/usb/gadget/function/usb_f_mass_storage.ko kobo:~#
6:23 PM
yes you know
6:23 PM
wrong path
Avatar
try this one
5.91 MB
Avatar
usb storage works
Avatar
yay!
Avatar
still some errors: cat: can't open '/mnt/onboard/.kobo/Kobo/Kobo eReader.conf': No such file or directory insmod: can't insert '/external_root/modules/fs/configfs/configfs.ko': File exists insmod: can't insert '/external_root/modules/drivers/usb/gadget/libcomposite.ko': File exists
Avatar
it's normal, since the configfs and libcomposite modules were already loaded
Avatar
I'll make you a GUI bundle with this binary
Avatar
don't forget to update the device from emu to n306
Avatar
yes
Avatar
when wifi will work?
Avatar
Avatar
Szybet
when wifi will work?
it doesn't?
Avatar
without using cmd
6:32 PM
only GUI
Avatar
try it
6:33 PM
it uses the same script as if you were in cmd
6:35 PM
You can use htop to see what it's doing
6:35 PM
maybe top if you're in a serial console
Avatar
usb storage doesn't disconnect after i unmount it :(
6:36 PM
bruh sdd 8:48 1 0B 0 disk
Avatar
You need to unplug the cable
Avatar
why? nickel doesn't needed
Avatar
because I haven't found a way to detect if it was ejected or not
Avatar
hmm, interesting
6:40 PM
it works
6:40 PM
how inkbox manages turning off the wifi?
6:40 PM
how do i get the IP of the device...
6:41 PM
:|
Avatar
Settings -> page 2 -> system info
6:43 PM
Get to the bottom
Avatar
It will be there
Avatar
to get the ip i need to generate a whole system report
Avatar
No
6:43 PM
Just system info
6:44 PM
Not the same thing
Avatar
still... no
Avatar
It's a dialog
Avatar
show a window after connecting to wifi (edited)
6:44 PM
with the ip
Avatar
you can do nmap -sP 10.42.0.0/24 on your host otherwise
Avatar
Avatar
tux-linux
you can do nmap -sP 10.42.0.0/24 on your host otherwise
i can even check it with cmd on serial connection
6:45 PM
but thats not the case
Avatar
Avatar
Szybet
how inkbox manages turning off the wifi?
and this?
Avatar
it doesn't
6:45 PM
maybe this could be something to add in settings
Avatar
Avatar
tux-linux
it doesn't
so it just disconnects randomly?
Avatar
no
6:46 PM
it stays connected
Avatar
it disconnected
Avatar
huh?
6:47 PM
dmesg?
Avatar
let me check this one more time
6:47 PM
do i need to enter the password every time?
Avatar
normally, no
Avatar
it auto-connects on boot
6:48 PM
it's complicated, but it will only do so when we have the recoveryfs
6:48 PM
i.e. in release
Avatar
i see here room for improvement, its a basic feature to remember wifi passwords
Avatar
it does remember them
Avatar
i need to enter it one more time now
6:49 PM
so how does it remember
Avatar
cat /data/config/17-wifi_connection_information/*
Avatar
yes, there are stored password and essid
6:50 PM
but i needed to enter it one more time
Avatar
The main problem with auto-connecting to a network would be if you changed the password of the ssid or had the same ssid but not the same password
6:51 PM
Once the recoveryfs is in place, the initrd will do that on boot: https://github.com/Kobo-InkBox/kernel/blob/master/initrd/common/setup-wifi (edited)
Avatar
Avatar
tux-linux
The main problem with auto-connecting to a network would be if you changed the password of the ssid or had the same ssid but not the same password
a button to reset the password and essid
Avatar
But then it has to see if the ssid is the same as the one saved, open another dialog i.e. pain ;p
6:53 PM
but it could be doable
6:53 PM
Though it would not have much purpose unless you decided to disable Wi-Fi and re-enable it after
6:54 PM
since it would already be auto-connected on boot
Avatar
and a button to enable, disable the wifi
Avatar
that is even more complicated
Avatar
Avatar
tux-linux
But then it has to see if the ssid is the same as the one saved, open another dialog i.e. pain ;p
its more pain to enter the password every time
Avatar
the Wi-Fi connection framework was one of the hardest and most confusing things I have done in Qt
6:56 PM
but you are connected now, it works, right?
Avatar
yes it works, and it does not dissconnect
6:57 PM
but still pain to enter the password every time
6:57 PM
or maybe a dialog "would you like to enter a new password or use this: "xyz""
Avatar
Hmm yeah maybe
Avatar
and a list of saved networks + password to show
6:58 PM
I really will have to learn cpp and qt
Avatar
Can you send me a video of how InkBox behaves on the Nia? Basic things, like reading a book, searching something, online library?
6:59 PM
So I can ensure everything seems fine on that model?
Avatar
Avatar
Szybet
and a list of saved networks + password to show
Wowow, one network at a time 😂 InkBox only saves one for the moment
Avatar
online library? what?
7:01 PM
you mean gutenberg, libraru button?
Avatar
Yes
Avatar
um error
Avatar
Whoops
Avatar
This plugin does not support setParent! Gutenberg sync encountered an error
Avatar
First one is unrelated
7:02 PM
Is there any other output?
Avatar
ls /data/storage/gutenberg -shal
Avatar
kobo:~# ls /data/storage/gutenberg -shal total 12K 4 drwxr-xr-x 2 root root 4.0K Jan 1 18:08 . 4 drwxr-xr-x 10 root root 4.0K Jan 1 00:54 .. 0 -rw-r--r-- 1 root root 0 Jan 1 18:08 catalog.csv 4 -rw-r--r-- 1 root root 11 Jan 1 18:08 last_sync kobo:~#
Avatar
Can you ping Google?
Avatar
sh -x /usr/local/bin/gutenberg/fetch_catalog.sh
Avatar
kobo:~# sh -x /usr/local/bin/gutenberg/fetch_catalog.sh + mkdir -p /data/storage/gutenberg + cd /data/storage/gutenberg + date '+%s' + rm -f catalog.csv + wget -O catalog.csv http://www.gutenberg.org/cache/epub/feeds/pg_catalog.csv --2012-01-01 18:11:41-- http://www.gutenberg.org/cache/epub/feeds/pg_catalog.csv Resolving www.gutenberg.org... 152.19.134.47, 2610:28:3090:3000:0:bad:cafe:47 Connecting to www.gutenberg.org|152.19.134.47|:80... connected. HTTP request sent, awaiting response... 302 Found Location: https://www.gutenberg.org/cache/epub/feeds/pg_catalog.csv [following] --2012-01-01 18:11:42-- https://www.gutenberg.org/cache/epub/feeds/pg_catalog.csv Connecting to www.gutenberg.org|152.19.134.47|:443... connected. ERROR: cannot verify www.gutenberg.org's certificate, issued by 'CN=Network Solutions OV Server CA 2,O=Network: Issued certificate not yet valid. To connect to www.gutenberg.org insecurely, use `--no-check-certificate'. + exit 1 kobo:~#
7:05 PM
o h n o c e r t i f i c a t e
Avatar
i feel that pain
Avatar
Sync your rtc
Avatar
with?
7:12 PM
in alpine there are like 5 diffrent
7:12 PM
the stock one was not working
7:12 PM
so idk which you used (edited)
Avatar
date -s "2022-03-06 19:17
7:17 PM
hwclock --systohc
7:17 PM
and you're done
7:18 PM
it's not a real sync, but the simplest method I have (edited)
Avatar
maybe a NTP would be better
Avatar
Or this
7:18 PM
sudo date -s "$(wget --method=HEAD -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f2-7)"
7:18 PM
How do I retrieve the date from the Internet and set my computer's clock, from the command line?
Avatar
oh thats cool
Avatar
don't forget to hwclock --systohc after that
Avatar
it takes long
7:21 PM
but no error soo fat
7:21 PM
kobo:~# Gutenberg sync successfully completed
Avatar
nice
7:23 PM
Does something show up when you click on "Library"?
Avatar
books
Avatar
nice
Avatar
boooooks
Avatar
booooooooooks
7:24 PM
have a screenshot?
Avatar
i will make the video
👍 1
7:24 PM
what do you mean by search
Avatar
Well, the search button
7:25 PM
Another thing to try after that would be X11
7:25 PM
It should be ok but just to be sure
Avatar
lightmaps are flickering
7:25 PM
not usable at all
Avatar
well it's usually not the main reason why someone installs inkbox (edited)
Avatar
but i clicked it accidentally
7:26 PM
😆
Avatar
ahh
7:26 PM
you can rc-service inkbox_gui restart
7:27 PM
oh; you will need to run again the command with wget that fetches inkbox binary
Avatar
you mean search a word?
Avatar
yeah, or a book in online library
7:28 PM
or in your onboard storage
Avatar
does this search a book local?
Avatar
to see how the keyboard behaves
Avatar
Avatar
Szybet
does this search a book local?
both
Avatar
yes it does
7:28 PM
okay
7:33 PM
why for every book it shows end page and no previous page
Avatar
wait, i will upload the video
7:33 PM
weird
Avatar
are you able to read though?
Avatar
blank page
Avatar
if you click next
Avatar
"end of document"
7:35 PM
the gui propably crashed, i cant click anything
7:35 PM
i will restart
Avatar
problems
7:37 PM
i'll make you an ui bundle
7:37 PM
i rebooted
7:37 PM
the inkbox file was in /tmp
7:38 PM
here is a old inkbox binary
7:38 PM
hmmm.... thats why?
Avatar
idk
Avatar
now reading works
Avatar
currently making a new one
7:39 PM
nice
Avatar
make a ui bundle, i will test it and then send a video
👍 1
7:39 PM
everything works great exept the file chooser, it takes ages sometimes to load
7:40 PM
changing brightness in the book does not work, i cant do antyhing
Avatar
Avatar
Szybet
changing brightness in the book does not work, i cant do antyhing
hmm hmm
Avatar
i can click the + - but its really hard, and the slider does not work
7:42 PM
now i see
Avatar
ok, so it works actually
7:42 PM
it's not a slider, it's a progress bar sorry
Avatar
1 opened a pdf, works 2 opened a epub, blank page cant go back, forward and options doesn't work
7:43 PM
no info on serial
7:43 PM
:|
Avatar
yeah I had this bug at some point too
Avatar
don't know what's causing it
7:43 PM
probably some tmpfs mount/umount quirk
Avatar
only with epubs?
Avatar
no, when opening a pdf then an epub
7:44 PM
uploaded the bundle
Avatar
its not usable that way
Avatar
reading books doesn't work
7:57 PM
any
7:57 PM
rebooted, opened epub, and nothing is there
Avatar
wow
7:57 PM
huh
7:58 PM
when you open an epub, do you see mutool in the process list with top or ps?
8:00 PM
it boots really slow btw
Avatar
what do you mean?
Avatar
1 minute?
Avatar
that's not slow (edited)
8:01 PM
Kindles boot in 1m40s
Avatar
nickel in 30?
Avatar
yeah, well, different infrastructure, less secure and more crash-prone
8:01 PM
nothing
Avatar
Does the book actually exist?
8:03 PM
none of my books work
Avatar
hang on; let me try this latest commit on the aura 2
8:03 PM
if it doesn't work we have a serious problem
Avatar
ok, will boot it now
8:11 PM
well, mine works alright
8:12 PM
What's the "Git" part of the system info in Settings?
8:13 PM
Mine is 1.8-86-g56db7ea
Avatar
wtf 1 reboot 2 opened a pdf 3 times 3 opened another pdf, blank page
Avatar
Do you have the "Global reading settings" option disabled?
Szybet pinned a message to this channel. 3/6/2022 8:16 PM
Avatar
There's also a tiny shell script around this command, so you can just as well do restart inkbox_gui
8:17 PM
(or any other service)
Avatar
Avatar
tux-linux
Do you have the "Global reading settings" option disabled?
no?
8:17 PM
disabled now
Avatar
try again; I'm curious
8:18 PM
this option, when disabled, permits you to save the last page you read in the book and go back to it automatically
Avatar
some pdfs work, some not
8:20 PM
only one pdf is working
8:20 PM
only one book is working
8:20 PM
thats the one i used in the past to test things
Avatar
try one from gutenberg
8:21 PM
they have a very high success rate
8:21 PM
or you can get one from online library
8:21 PM
btw, you can also display images along pdf and epubs
8:21 PM
pngs, jpgs, etc.
Avatar
i don't have any
Avatar
heh, discovered that if you open an image, then an epub, then the image again, it segfaults
8:23 PM
awesome
8:24 PM
Some bugs may have appeared like that but since my userbase is currently very tiny I don't know much about them
8:24 PM
I should really implement something like sickel
Avatar
from gutenberg it works
Avatar
Which restarts Nickel when it segfaults/closes unexpectedly
Avatar
Avatar
Szybet
from gutenberg it works
ok nice
8:26 PM
I tried with other books, even one with 1500+ pages and it worked
8:26 PM
(not from gutenberg)
8:26 PM
Maybe it's specific to your epub
Avatar
all of my books?
8:27 PM
only one is working, that is some images pasted into pdf using libreoffice
8:27 PM
._ .
Avatar
can you send one so I can try on my side?
8:28 PM
This for example
8:28 PM
its a datasheet of a diode...
Avatar
Let me see
8:30 PM
8:30 PM
works here
8:30 PM
can you try to open the system report pdf you generated before?
Avatar
no, i cant
8:31 PM
xD
Avatar
btw, thanks for contributing so much
Avatar
Avatar
Szybet
no, i cant
? it doesn't work?
Avatar
Avatar
tux-linux
btw, thanks for contributing so much
thanks for making this project, it will make it easier to achieve my goal too
👍 1
Avatar
Avatar
tux-linux
? it doesn't work?
it doesn't
8:33 PM
thats a interesting error when Option button doesnt work: Segmentation fault (edited)
Avatar
ah ah (edited)
8:34 PM
what have you done since the reboot?
Avatar
tryied to open some books you know
Avatar
hmm
8:34 PM
if you restart inkbox_gui and try to open the system report pdf, does it work?
Avatar
btw, kobo:~# ps aux | grep mutool 3541 root 0:00 grep mutool kobo:~# its while in the opened pdf that works
Avatar
no
8:35 PM
it just shows the grep process that greps mutool
8:35 PM
so there is nothing
8:35 PM
strange
Avatar
yes i know
8:36 PM
but now the system report works?????
Avatar
magic
Avatar
let my try the diode
8:37 PM
nope
Avatar
what-
Avatar
but after it the systemreport works
Avatar
but it works here
8:37 PM
nonsense
Avatar
I opened an EPUB->System Report->Diode->System Report and it works
Avatar
let me try
Avatar
like, it should already have failed three times here lol
Avatar
Avatar
Szybet
let me try
restart gui before
Avatar
after epub the systemreport doesn't open
8:39 PM
but i will restart
8:41 PM
it doesn't work after the reset too
Avatar
even more nonsense
Avatar
gutenberg doesn't work
8:42 PM
will reset and try the diode
👍 1
8:43 PM
kobo:~# umount: can't unmount /inkbox: Invalid argument iniparser: cannot open /mnt/onboard/.kobo/nightmode.ini cat: can't open '/mnt/onboard/.kobo/Kobo/Kobo eReader.conf': No such file or directory QCoreApplication::postEvent: Unexpected null receiver sha256sum: /kobo/mnt/onboard/onboard/WS2811.pdf: No such file or directory mount: mounting /opt/config/07-words_number on /kobo/mnt/onboard/.adds/inkbox/.config/07-words_number failed: y mount: mounting /opt/config/08-recent_books on /kobo/mnt/onboard/.adds/inkbox/.config/08-recent_books failed: y mount: mounting /opt/config/11-menubar on /kobo/mnt/onboard/.adds/inkbox/.config/11-menubar failed: No such fiy mount: mounting /opt/config/13-epub_page_size on /kobo/mnt/onboard/.adds/inkbox/.config/13-epub_page_size faily mount: mounting /opt/config/14-reader_scrollbar on /kobo/mnt/onboard/.adds/inkbox/.config/14-reader_scrollbar y QIODevice::read (QFile, "/inkbox/book/split/."): device not open QIODevice::read (QFile, "/inkbox/book/split/.."): device not open
8:43 PM
idk, doesn't work
Avatar
mount
8:44 PM
Please post output of this command
Avatar
serial doesn't format properly the output
8:45 PM
wait
Avatar
Avatar
Szybet
serial doesn't format properly the output
well, it's serial, what do you want ;p
Avatar
this could be host controller
Avatar
idk
Avatar
kobo:~# umount: can't unmount /inkbox: Invalid argument iniparser: cannot open /mnt/onboard/.kobo/nightmode.ini cat: can't open '/mnt/onboard/.kobo/Kobo/Kobo eReader.conf': No such file or directory QCoreApplication::postEvent: Unexpected null receiver QCoreApplication::postEvent: Unexpected null receiver sha256sum: /kobo/mnt/onboard/onboard/WS2811.pdf: No such file or directory mount: mounting /opt/config/07-words_number on /kobo/mnt/onboard/.adds/inkbox/.config/07-words_number failed: No such file or directory mount: mounting /opt/config/08-recent_books on /kobo/mnt/onboard/.adds/inkbox/.config/08-recent_books failed: No such file or directory mount: mounting /opt/config/11-menubar on /kobo/mnt/onboard/.adds/inkbox/.config/11-menubar failed: No such file or directory mount: mounting /opt/config/13-epub_page_size on /kobo/mnt/onboard/.adds/inkbox/.config/13-epub_page_size failed: No such file or directory mount: mounting /opt/config/14-reader_scrollbar on /kobo/mnt/onboard/.adds/inkbox/.config/14-reader_scrollbar failed: No such file or directory QIODevice::read (QFile, "/inkbox/book/split/."): device not open QIODevice::read (QFile, "/inkbox/book/split/.."): device not open
Avatar
ok, and mount?
Avatar
Well, just enter mount, then post the output
8:49 PM
no arguments
Avatar
CSUM=$(sha256sum /data/onboard/WS2811.pdf | awk '{ print $1 }') ls -shalR "/data/onboard/.${CSUM}" (edited)
Avatar
can i have directories?
8:52 PM
/data/onboard/elektronics/WS2811.pdf
8:52 PM
?
Avatar
yeah
Avatar
kobo:~# CSUM=$(sha256sum /data/onboard/elektronics/WS2811.pdf | awk '{ print $1 }') ls: /data/onboard/elektronics/.b679e125ca8793e9c2fc5dbe19897c2ca92226409459f2e590b38634a832f59e: No such file or directoy kobo:~#
Avatar
interesting
8:54 PM
oh
8:54 PM
no actually, it should be in the root of onboard
Avatar
n bjfhdnsajk
8:54 PM
fmdakjm
8:54 PM
thats why the one pdf works
Avatar
you can put books in subdirectories, but the config settings will be on the root of the onboard storage
8:55 PM
or... it should work?
8:55 PM
normally they do
Avatar
its the only one that works, the pdf is in the main directory
8:55 PM
wait, i will copy the diode
Avatar
yeah, try that
Avatar
it works
Avatar
that's not good news for me
8:57 PM
what if you try the pdf in subdirectory without global reading settings?
Avatar
they are disabled
8:58 PM
oh, a pdf
8:58 PM
wait
8:58 PM
it works?
8:59 PM
but it doesn't respond now, the screen
8:59 PM
QIODevice::read (QFile, "/inkbox/book/split/."): device not open QIODevice::read (QFile, "/inkbox/book/split/.."): device not open QPixmap::scaled: Pixmap is a null pixmap
8:59 PM
i cant do anything
Avatar
*with global reading settings
9:00 PM
sorry
Avatar
my fault
Avatar
its still not good that it crashed
Avatar
yeah
Avatar
it works now
Avatar
ok
9:02 PM
and that also explains why the gutenberg book worked
9:02 PM
now you can make the video ;p
Avatar
what with epubs?
Avatar
try if you want
9:03 PM
but inkbox saved the gutenberg book in onboard storage root
Avatar
they work
9:03 PM
i dont understand anything now
Avatar
me neither
9:06 PM
(with the bookconfig_mount function at the top of the file too)
Avatar
some epubs work, some not, i tryied to launch a pdf, and the previous book was launched, then it crashed
9:10 PM
you will se it on the video
9:13 PM
dont ask me why the video is rotated
Avatar
ok, will look at it, thanks!
Avatar
when will you figure out why are some books not working?
Avatar
once it... finishes downloading
9:15 PM
Avatar
i would like to use the ereader finally
Avatar
Avatar
Szybet
when will you figure out why are some books not working?
with the global reading settings thing?
Avatar
you dont need to download it, you can watch it in the browser
Avatar
no it downloaded it directly
9:16 PM
and it's the same at the end
Avatar
Avatar
tux-linux
with the global reading settings thing?
idk, generally
Avatar
well, your books work now with that option enabled, right?
Avatar
some yes, some not. the video shows it
Avatar
ok
Avatar
ok finally downloaded
9:40 PM
little tip: you can click on the area where you want the slider to go to get there easily
Avatar
it takes more time
Avatar
well, that's a depressive video 😂
Avatar
everything works
9:43 PM
and then nothing
Avatar
did you experience UI freeze sometimes? I think so, right?
Avatar
sometimes
9:44 PM
the file chooser, maybe changing pages
Avatar
though the video shows you stressed the UI to its maximum so it should have crashed already
Avatar
??? stressed ui?
Avatar
by freeze, I mean completely freezing, you're not able to do anything, you have to restart inkbox_gui?
Avatar
Avatar
Szybet
??? stressed ui?
well, rapidly clicking next page button for example
9:45 PM
Most devices handle that well but on my Libra for example this can lead to an UI freeze
9:45 PM
Since the Libra has the same kernel version that of the Nia, I wanted to check
Avatar
Avatar
tux-linux
by freeze, I mean completely freezing, you're not able to do anything, you have to restart inkbox_gui?
through the video, only at the end
Avatar
Avatar
tux-linux
well, rapidly clicking next page button for example
i cant click fast? common...
Avatar
yes, you can, normally
Avatar
Avatar
Szybet
through the video, only at the end
I think that UI freeze is due to the fact that it expects to have a PDF displayed but it's actually an epub and it panics, so unrelated
Avatar
maybe
Avatar
I was talking about UI freezes by the platform plugin
Avatar
Avatar
Szybet
i cant click fast? common...
it works on touch, mini, glo, glo hd, aura 2, but is unstable on the Libra
9:47 PM
so I wanted to see if yours was unstable or not
9:47 PM
it seems stable
Avatar
yea, it seems
9:48 PM
i will test it more when opening epubs and pdf will be not faulty
👍 1
Avatar
Avatar
tux-linux
I think that UI freeze is due to the fact that it expects to have a PDF displayed but it's actually an epub and it panics, so unrelated
Actually, it segfaults there, right?
Avatar
maybe, i didn't have serial connection then
Avatar
can you try to reproduce the error? that way we'll be sure
Avatar
one minute
👍 1
9:54 PM
1 boot up 2 open the epub last time it errored, nothing shows up, last page, no previous page but i can go into options 3 launch a epub that worked before, it works 4 launch the pdf that worked all the time, it freezes exactly like the last book on the video, no information on serial
Avatar
ok, well first do rc-service inkbox_gui restart to see inkbox stdout
9:58 PM
it is silenced by default otherwise
Avatar
do you have global reading settings enabled or disabled?
Avatar
i will check, i hope it saved
👍 1
10:01 PM
enabled
10:01 PM
is it good?
10:06 PM
@tux-linux
Avatar
Yes
10:44 PM
It is
10:44 PM
Sorry for the delay
10:50 PM
Can you try X11?
10:50 PM
I will hopefully have the courage to debug that book opening issue
10:50 PM
soon™️
Avatar
1 opened a epub, it doesn't work 2 home 3 opened a pdf, the screen flickered for 2 minutes 4 book menu, nothing works, and: Segmentation fault
Avatar
ok yeah so it is not related to the QPA, as expected
Avatar
Avatar
tux-linux
Can you try X11?
its rebooting
👍 1
Avatar
Avatar
Szybet
1 opened a epub, it doesn't work 2 home 3 opened a pdf, the screen flickered for 2 minutes 4 book menu, nothing works, and: Segmentation fault
yay, can reproduce here
Avatar
but why the first epub didn't worked?
Avatar
that I don't know
Avatar
thats not good
Avatar
was it just after a reboot?
Avatar
can you share the epub?
Avatar
sended on pw (edited)
👍 1
10:57 PM
xorg works
10:57 PM
and its maybe faster?
Avatar
what do you mean?
Avatar
idk, maybe just the menu
10:58 PM
im trying to launch geany
10:58 PM
can take ~1m
10:59 PM
on newer devices it's usually faster
10:59 PM
kterm can launch in 45s on the libra
Avatar
black screen
10:59 PM
and
10:59 PM
Server terminated successfully (0). Closing log file
Avatar
yes
11:00 PM
normal
11:00 PM
wait a bit
11:00 PM
you can see in ps if geany is running
Avatar
serial cmd is lagging
11:01 PM
kobo:~# free total used free shared buff/cache available Mem: 250128 90136 2712 1696 157280 137400 Swap: 0 0 0
Avatar
137M is quite a lot
Avatar
hm, it will run out of memory
Avatar
no?
Avatar
but free
11:01 PM
but ok
Avatar
No, check the available part
11:01 PM
the others are not relevant
Avatar
it works, its horrible and no thanks
Avatar
it's that horrible?
Avatar
for me, yes
11:02 PM
for you, no
Avatar
maybe you mean the size of the keyboard
11:02 PM
that is horrible
Avatar
it flickers too much for me
Avatar
well, what do you expect, it's an eink screen
Avatar
a native fbink editor would work better
Avatar
try kterm
Avatar
i will write one in the future i hope (edited)
Avatar
maybe it will be better
Avatar
Avatar
Szybet
a native fbink editor would work better
check out inkvt
11:04 PM
echo true > /boot/flags/DISPLAY_DEBUG
11:04 PM
that will throw serial console output on the screen instead of the serial port
11:04 PM
with inkvt
11:05 PM
you can quit geany with file->quit
11:05 PM
gui will launch automatically after that
Avatar
well, tommorow i will check it
👍 1
Avatar
When an user first opened an ePUB, then a PDF, it didn't work. This was due to an issue with the two tmpfs at '/kobo/inkbox' and '/kobo/run'. This commit fixes that issue.
Avatar
You can prepare a GUI bundle
6:41 AM
And i think in the future i will make a docker image with Qt and everything to compile inkbox
Avatar
Nice
6:46 AM
12:40AM here so
6:47 AM
Probably will be tomorrow
6:49 AM
Or you can try that https://github.com/Rain92/kobo-qt-setup-scripts But I didn't test it so I don't know what it does really
Contribute to Rain92/kobo-qt-setup-scripts development by creating an account on GitHub.
6:50 AM
And then compile InkBox yourself qmake . make
Avatar
Avatar
tux-linux
12:40AM here so
Diffrent time zones, a 5 hour shift
Avatar
I'm in Canada ;p
3:31 PM
I'll make the GUI bundle now
Avatar
Bundle done!
Szybet pinned a message to this channel. 3/7/2022 4:10 PM
Szybet pinned a message to this channel. 3/7/2022 4:11 PM
Avatar
i will try it
👍 1
Avatar
the linus book doesn't work
Avatar
not again
4:21 PM
have you global reading settings enabled?
Avatar
hang on let me try here
4:22 PM
maybe it's an issue with the book itself
4:22 PM
do other ones work?
Avatar
no, epubs dont work
Avatar
linus book works perfectly here
4:24 PM
did you reboot?
Avatar
yes, i can reboot one more time
4:25 PM
for me none epubs work
Avatar
do reboot
4:25 PM
this is weird
Avatar
oh, one works
Avatar
is it the one not in a subdir for some reason?
Avatar
all of them are in a subdir
Avatar
do you open them with the recent books buttons or the file manager?
4:26 PM
even with search
Avatar
does search work with subdirs?
Avatar
nice
4:27 PM
I can't see what's causing the issue
4:28 PM
while true; do ls -shal /kobo/run /kobo/inkbox; sleep 1; done
Avatar
please run this on the kobo
4:28 PM
open an ePUB, then a PDF, then an ePUB
Avatar
with what, search, file, recent?
Avatar
file manager
Avatar
does that make a diffrence when i use something else?
Avatar
something else what?
4:29 PM
well, it should not
4:29 PM
(if you're talking about opening methods)
Avatar
also, the file manager is slow, its hard to use so i avoid it as much i can
Avatar
Avatar
tux-linux
(if you're talking about opening methods)
yes
Avatar
then Search is probably your best friend
4:30 PM
maybe I should just put a search-like file manager instead
Avatar
no, a list is needed to
Avatar
i dont remember names of all my books
Avatar
No I mean, display a file list like if you searched for pdf, epub, png at once
4:32 PM
So it displays a list of all compatible books found
4:32 PM
thats better
Avatar
also, try to reboot
Avatar
everything works now, i will reboot and use the last books menu
Avatar
what?
4:34 PM
nonsense
4:34 PM
what did you do
Avatar
yes it is
4:34 PM
the only thing i did in a other way, that i used the file manager not the search menu
Avatar
wait; i'll try with the file manager on my side
4:34 PM
*search I mean
4:36 PM
oh; maybe the search function doesn't understand relative paths
4:36 PM
it doesn't work here too
4:36 PM
try putting linus book in onboard root and open it with search again
Avatar
search doesn't work for me
4:38 PM
maybe add a check function that checks if a file exists
4:38 PM
or smth...
Avatar
Avatar
Szybet
search doesn't work for me
even if the file is in onboard root?
4:39 PM
onboard works
Avatar
ok, i see the problem
4:41 PM
I only save dirIt.fileName() while I should also save dirIt.filePath() to allow opening files in subdirs
Avatar
why does opening books take long, and next pages too? couldn't you save next pages into ram while reading current page?
Avatar
I actually had an idea two days ago about this I'm going to implement it soon
Avatar
good, then inkbox will be usable
Avatar
Won't change the speed of opening a book much, but page will load in less than a second
Avatar
Avatar
Szybet
good, then inkbox will be usable
Did you try with smaller ebooks? It's faster there
4:44 PM
Search "jekyll" in online library and download the second book in the list
Avatar
I opened a random book from recent list, it didn't worker ( last page, no previous page ), then the book dissapered from the list
4:46 PM
a book with only text works great
4:46 PM
but thats about it, some images and its dying
Avatar
images will be something to implement too
Avatar
why did the gui
4:47 PM
died
Avatar
hmm hmm
Avatar
and brightness to 0
Avatar
ui freeze? (edited)
4:47 PM
randomly
4:47 PM
i didn't do anything
Avatar
Did you click "Cancel" in the file dialog?
4:48 PM
If you do ps | grep inkbox-bin, does that give anything?
Avatar
im in the book that is fast
Avatar
Avatar
tux-linux
If you do ps | grep inkbox-bin, does that give anything?
yes 2203 root 0:09 /mnt/onboard/.adds/inkbox/inkbox-bin
Avatar
can you try to click somewhere where it would normally do something?
Avatar
nothing
Avatar
then, put it to sleep; click the power button
Avatar
and brighntess is 0
Avatar
wait 15s click it again
4:49 PM
if you have access to the cli it is not dead
Avatar
the brightness went to 100%, then slowly to 0 and now its sleeping
Avatar
Avatar
tux-linux
wait 15s click it again
After that, is it the same or can you click and it reacts?
Avatar
but with no sleeping text
Avatar
that's what I was fearing
4:50 PM
The Nia is now on the unstable devices list
4:50 PM
Try to wake it up
Avatar
how did it launch a word seafrch list (edited)
4:50 PM
it waked up by his own, i didn't clicked anything
Avatar
is your kobo plugged in via usb?
4:51 PM
i disconeccted it becouse everytime i go to home it asks me about usb
Avatar
hmm
4:51 PM
can you try to put it to sleep one more time? try not to touch anything except the power button (edited)
Avatar
its sleeps
Avatar
well, yeah, but for how long
4:52 PM
the real moment when it sleeps is 15s after you pressed the power button
4:52 PM
otherwise it wakes up again because the kernel says "Resource busy"
Avatar
it sleeps
Avatar
ok oof
4:53 PM
now wake it up
4:53 PM
We will try something
4:54 PM
i cant click anything, the brightness button for example
4:54 PM
it went to a book
4:54 PM
why
4:54 PM
another freeze
Avatar
cp /etc/init.d/inkbox_gui /tmp vi /tmp/inkbox_gui
4:55 PM
Edit the file so that line 47 looks like this
4:55 PM
4:55 PM
Then mount --bind /tmp/inkbox_gui /etc/init.d/inkbox_gui rc-service inkbox_gui restart
4:55 PM
This will launch InkBox GUI with the newer platform plugin I was talking about yesterday
4:57 PM
Also, when you run chroot /kobo /bin/kobo_config.sh it should output luna, right?
Avatar
Avatar
tux-linux
Also, when you run chroot /kobo /bin/kobo_config.sh it should output luna, right?
yes
Avatar
ok, so try the steps above
4:59 PM
I'm trying them on my Libra too which has the same problem
Avatar
i need wifi but i dont have any gui
Avatar
don't you have serial?
Avatar
do i need to try these 2 commands from yeastarday?
Avatar
no
Avatar
Avatar
tux-linux
don't you have serial?
nano sucks on serial
Avatar
use vi
5:00 PM
also, tip: reset so that your terminal isn't messed up anymore
5:01 PM
or maybe you can usbnet?
Avatar
i will just do it with vim
5:01 PM
i will try
Avatar
noooooo
5:01 PM
serial doesn't like vim
5:01 PM
only likes vi
Avatar
yes vi vi
👍 1
Avatar
well, it messes up rotation on my libra
5:05 PM
hope it won't be the case for the Nia
Avatar
[FBInk] Unidentified Kobo device code (40)! kobofb: Finished initialization. [FBInk] [refresh_kobo] MXCFB_SEND_UPDATE_V1_NTX: Operation not permitted! [FBInk] [fbink_refresh] Failed to refresh the screen! [FBInk] [refresh_kobo] MXCFB_SEND_UPDATE_V1_NTX: Operation not permitted! [FBInk] [fbink_refresh] Failed to refresh the screen! [FBInk] [refresh_kobo] MXCFB_SEND_UPDATE_V1_NTX: Operation not permitted! [FBInk] [fbink_refresh] Failed to refresh the screen!
5:09 PM
mhm
Avatar
so you can never see the gui?
Avatar
the screen doesn't changed
Avatar
cat /sys/class/graphics/fb0/rotate
Avatar
fbink -k -f does something?
Avatar
[FBInk] Couldn't find a Kobo version tag (onboard unmounted or not running on a Kobo?)! [FBInk] Detected a Kobo Nia (382 => Luna @ Mark 7) [FBInk] Enabled Kobo Mark 7 quirks [FBInk] Clock tick frequency appears to be 100 Hz [FBInk] Screen density set to 212 dpi [FBInk] Variable fb info: 758x1024, 8bpp @ rotation: 3 (Counter Clockwise, 270°) [FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 3145728 bytes & line length: 768s [FBInk] Canonical rotation: 0 (Upright, 0°) [FBInk] Fontsize set to 16x16 (IBM base glyph size: 8x8) [FBInk] Line length: 47 cols, Page size: 64 rows [FBInk] Pen colors set to #000000 for the foreground and #FFFFFF for the background [FBInk] [refresh_kobo_mk7] MXCFB_SEND_UPDATE_V2: Operation not permitted! [FBInk] [fbink_cls] Failed to refresh the screen!
Avatar
ok, now try to put it to sleep, then wake it up maybe we can be lucky
5:14 PM
After that, try rc-service inkbox_gui restart
Avatar
only the minutes showed up
5:15 PM
after returning from sleep
Avatar
ok, yeah, good thing
5:15 PM
try service restart now
Avatar
yes, its working
5:16 PM
whot now
Avatar
well, what is working? the UI?
5:17 PM
touch input, graphics, all?
Avatar
i managed to change the brightness, so yes
Avatar
ok, rotation is good?
5:17 PM
for a minute it looked like this
5:17 PM
how to i rotate?
Avatar
ls -shal /kobo/mnt/onboard/.adds/qt-linux-5.15.2-kobo/lib/plugins/platforms/libkobo.so
Avatar
Avatar
Szybet
for a minute it looked like this
The Glo HD does this too when getting out of sleep, idk why
Avatar
Avatar
tux-linux
ls -shal /kobo/mnt/onboard/.adds/qt-linux-5.15.2-kobo/lib/plugins/platforms/libkobo.so
no such file
Avatar
it is fixed by restarting inkbox binary
Avatar
Avatar
Szybet
no such file
ls -shal /kobo/mnt/onboard/.adds/qt-linux-5.15.2-kobo/plugins/platforms/libkobo.so sorry
Avatar
411 -rwxr-xr-x 1 root root 411.6K Feb 19 17:24 /kobo/mnt/onboard/.adds/qt-linux-5.15.2-kobo/plugins/platforms/libkobo.so
Avatar
good!
5:22 PM
Can you play around the UI a bit? Stress it maybe too?
Avatar
If it doesn't crash, wheehee (edited)
Avatar
last books doesn't work
5:24 PM
already crashed
5:24 PM
and is refreshing
Avatar
awesome
Avatar
[FBInk] Unidentified Kobo device code (40)! kobofb: Finished initialization.
Avatar
Avatar
tux-linux
awesome
why
Avatar
yeah that's normal, it says that even when it's working
5:24 PM
sarcasm
5:24 PM
well, if that platform plugin doesn't work, we're screwed
Avatar
At least it's fixable by going to sleep, then waking up
5:25 PM
not requiring an entire reboot
Avatar
still not good
Avatar
i know
5:26 PM
but this is out of my knowledge
5:26 PM
it should not even happen
5:26 PM
also that's wonderful news for clara hd porting (same kernel, or maybe andi1's 5.16 tree will save us) delivering an image that is half-working at best (edited)
5:29 PM
at what rate did it crash before we tried with the newer platform plugin?
5:29 PM
like, 5 mins average, 10 min average, what?
5:32 PM
I see one possible, hypothetic, crazy solution: You implement a VNC viewer with FBInk in Rust and we run that one instead of the native platform plugin. In Qt libs I put on the Kobo, there's libvnc.so, which allows creating a VNC server to which you can connect with a client. It is used in InkBox OS emulator to interact with the UI because implementing a touch screen in QEMU would be difficult. Assuming that your VNC viewer maps touch input correctly and does not trigger the same kernel bug that the platform plugin did, this would provide a complete, stable and painless UI hardware abstraction layer. (edited)
5:34 PM
Maybe you can look at this project https://github.com/whitequark/rust-vnc
Avatar
Avatar
tux-linux
I see one possible, hypothetic, crazy solution: You implement a VNC viewer with FBInk in Rust and we run that one instead of the native platform plugin. In Qt libs I put on the Kobo, there's libvnc.so, which allows creating a VNC server to which you can connect with a client. It is used in InkBox OS emulator to interact with the UI because implementing a touch screen in QEMU would be difficult. Assuming that your VNC viewer maps touch input correctly and does not trigger the same kernel bug that the platform plugin did, this would provide a complete, stable and painless UI hardware abstraction layer. (edited)
this will be not efficient, inkbox is now not super fast
Avatar
then what do you suggest?
Avatar
Avatar
tux-linux
like, 5 mins average, 10 min average, what?
idk
Avatar
Avatar
tux-linux
then what do you suggest?
idk
5:38 PM
i dont know if it was that bad before
Avatar
or we can just go ahead with what we have now
Avatar
it wasn't that bad, you mean all crashes?
Avatar
yeah
5:40 PM
ui freeze
Avatar
some of them were becouse of the pdf - ebup thing
Avatar
on my libra it is that bad
5:40 PM
maybe with some luck the Nia isn't as much as affected
Avatar
maybe
5:44 PM
can you describe the issue more?
Avatar
i can't, it's just as you said, it freezes randomly for no reason
5:45 PM
Qt still reacts to input events and button presses, it just doesn't show up on the screen
5:45 PM
killall inkbox-bin; env QT_QPA_PLATFORM=vnc:size=768x1024 chroot /kobo /mnt/onboard/.adds/inkbox/inkbox.sh You can try the VNC server this way
5:46 PM
Just access your Kobo's IP via Wi-Fi or USBNet with a VNC viewer (edited)
Avatar
only qt?
5:46 PM
maybe its qt related
Avatar
No, it happens when you do too much refreshes with FBInk too
Avatar
why this problem doesn't occurs on the stock firmware?
Avatar
no idea
Avatar
maybe do a bug report to the linux kernel or smth?
Avatar
what would that change?
5:51 PM
Check the average reply rate here: https://github.com/kobolabs/Kobo-Reader/issues (edited)
Contribute to kobolabs/Kobo-Reader development by creating an account on GitHub.
Avatar
or to the people that developed open source fbink?
Avatar
Already asked; NiLuJe has no idea either
Avatar
so hardware related?
Avatar
maybe?
5:53 PM
probably
Avatar
how to restore the changes? (edited)
5:56 PM
now nothing is working
Avatar
Reboot
Avatar
nope, i rebooted twice
Avatar
Huh
5:59 PM
It should have unmounted the things
Avatar
it is proprably software related? if hardware it would occur on stock firmware too
Avatar
What's /etc/init.d/inkbox_gui contents?
6:01 PM
the changes are gone
6:01 PM
maybe i will dissconnect the battery?
Avatar
It should work
6:04 PM
Not the battery
6:04 PM
I don't know why it doesn't
6:04 PM
It crashes or what?
Avatar
flickers
6:04 PM
and nothing works
Avatar
What do you mean "flickers"? How
Avatar
the screen
Avatar
Did you try service restart?
Avatar
i rebooted twice...
Avatar
Boot Nickel and come back
Avatar
restore the sd card?
Avatar
Don't you have another one?
Avatar
Well
6:08 PM
Idk
6:08 PM
Do you have a video of what's happening?
Avatar
dissconecting the battery worked
6:10 PM
its working like before (edited)
Avatar
WHAT
6:13 PM
HOW
6:13 PM
huh ok
Avatar
if you could repair the search menu / last books menu i will take it to school / use the ereader with inkbox regularly and check how much the problem occurs
👍 1
Avatar
Your Kobo is weird
Avatar
Avatar
tux-linux
HOW
Avatar
Avatar
Szybet
if you could repair the search menu / last books menu i will take it to school / use the ereader with inkbox regularly and check how much the problem occurs
I'll start with search
Avatar
it would be awesome if you managed to do this today
6:15 PM
today in my time zone*
Avatar
Maybe you can expect it by about 10pm in your timezone?
6:17 PM
Or maybe earlier
Avatar
sure, till 11 pm i can apply the patches
Avatar
ok, fixed the search issue
Avatar
good, thats the most important now
8:09 PM
the last books menu is broken in many other ways, so well
8:09 PM
search the best
Avatar
Avatar
Szybet
the last books menu is broken in many other ways, so well
yeah, i know, I'm planning to remove that or replace it with something else
Avatar
just a list with a slide, and maybe show directories with and then the books with a tab
8:17 PM
I'll make you a GUI bundle
Avatar
Avatar
tux-linux
yeah, i know, I'm planning to remove that or replace it with something else
maybe replace the file explorer + last books into one?
Avatar
maybe
8:20 PM
could be a nice thing for 2.0 release
8:23 PM
Done, uploaded the bundle
8:23 PM
same url
tux-linux pinned a message to this channel. 3/7/2022 8:24 PM
Avatar
is there a easier way to update it than going into u-boot?
Avatar
scp it to the Kobo via usbnet
8:26 PM
or make your own update package, but that's more complicated than going into u-boot
Avatar
Avatar
tux-linux
scp it to the Kobo via usbnet
thats too
Avatar
that much?
8:27 PM
scp update-n306.isa root@192.168.2.2:/data/firmware/update.isa and you're done
8:27 PM
(well, service restart needed after that, but it's basically it)
Avatar
Avatar
tux-linux
that much?
maybe
Avatar
that's what I do all the time TBH
Avatar
Search works
Avatar
nice
8:38 PM
and you can open books from a subdir?
8:38 PM
even the linus epub with it
Avatar
nice
8:39 PM
and you're able to switch between pdf<->epub no problem?
Avatar
Ok awesome!
Avatar
i think battery life on inkbox will be better?
8:45 PM
with suspend?
Avatar
yes
8:46 PM
Well, it should be
Avatar
the diode is not on when charging?
9:08 PM
+ its sleeping
Avatar
No
9:10 PM
In what way is this a problem?
9:10 PM
It is just handled by software and Nickel normally
Avatar
i want to know if its charging
9:25 PM
thats another option to add
Avatar
Avatar
Szybet
i want to know if its charging
there's the ~ battery icon ~
Avatar
its sleeping
9:31 PM
hmm
Avatar
ah
9:35 PM
well, none of my kobos do that and I survive
Avatar
i dont want to trust the usb charger if its charging
👍 1
9:36 PM
😆
Avatar
it went out of sleep after hitting 100%
9:44 PM
bug or feature?
Avatar
bug?
9:45 PM
idk why
9:45 PM
kernel-related
Avatar
i forgot about one thing
10:08 PM
suspend when a magnet is near the hall sensor
10:09 PM
now its only getting it out of suspend, but not in
Avatar
hmm, yeah, that's an input event code I forgot to add
10:11 PM
1. Reboot the Kobo. 2. When it says "(initrd) Press any key to stop auto-boot", press a key and login as root. 3. Launch evtest /dev/input/event0 4. Put the cover on the device as if you were putting it to sleep 5. Remove the cover from the screen 6. Post output of command in step 3.
Avatar
can i do this using ssh?
Avatar
you'll need to killall evtest before to ungrab the device i'd do it directly in the initrd
Avatar
hm, okay
10:14 PM
but tommorow
👍 1
Avatar
A PDF opens, there is the first page but there are no othet pages to switch
Avatar
The scale when changing pages is not applied, but the slider is still on its position (edited)
11:21 AM
Hm, ITS only in this specific pdf
11:24 AM
Also a random thought: why dont you use the library wiev for the last book section?
Avatar
Avatar
Szybet
Hm, ITS only in this specific pdf
When the PDF opens, its okay but aftet clicking options its doing this
Avatar
The GUI freezes randomly, but not often. When i click power button its going to sleep, and the sleeping text appears. ( returning from sleep does not fix this ) Why? Its the most important problem @tux-linux (edited)
11:46 AM
It only flickers ( and freezes ) when i click some od the last books, its random (edited)
Avatar
Avatar
Szybet
The GUI freezes randomly, but not often. When i click power button its going to sleep, and the sleeping text appears. ( returning from sleep does not fix this ) Why? Its the most important problem @tux-linux (edited)
Oh, that's not what it does on my Libra Maybe it's a different problem On my Libra, if it freezes, you put it to sleep then wake it up and everything is fine
Avatar
Avatar
Szybet
Hm, ITS only in this specific pdf
Try with another PDF with a super long name
Avatar
Avatar
tux-linux
Try with another PDF with a super long name
HMMMMM okay
Avatar
Avatar
tux-linux
Oh, that's not what it does on my Libra Maybe it's a different problem On my Libra, if it freezes, you put it to sleep then wake it up and everything is fine
The screen works, but Qt maybe not
1:19 PM
It always freezes in a book in that problem
Avatar
Avatar
tux-linux
Try with another PDF with a super long name
Its not the case, the Linus one has a similar lenght
Avatar
But it's an Epub
Avatar
i dont have a long epub
3:37 PM
i will later change the name of one
Avatar
Avatar
Szybet
The GUI freezes randomly, but not often. When i click power button its going to sleep, and the sleeping text appears. ( returning from sleep does not fix this ) Why? Its the most important problem @tux-linux (edited)
how to debug this?
Avatar
You can't
Avatar
Avatar
Szybet
i will later change the name of one
It's fixed, will commit shortly
Avatar
Avatar
tux-linux
You can't
what
Avatar
Avatar
tux-linux
You can't
Maybe check dmesg but don't be too hopeful
4:18 PM
does this pdf work for you?
4:28 PM
I'll see
Avatar
im testing it for 4 hours now, changing pages, books, zooming etc
6:34 PM
everything works
6:34 PM
im confused
Avatar
there are some problems with suspend
Avatar
Avatar
Szybet
im confused
Me too
Avatar
Avatar
Szybet
there are some problems with suspend
What exactly?
Avatar
Avatar
tux-linux
Me too
I will just test it till the weekend and then say
👍 1
Avatar
Avatar
tux-linux
What exactly?
when it goes to suspend, after some seconds it goes back, but the screen is freezed, brightness on. To unfreeze it i need to put it to sleep once again. and this bug wasn't before, im confused. And wifi search after suspend doesn't work, it goes to a loop and i cant do nothing
8:40 PM
i will just test more
👍 1
Avatar
Avatar
Szybet
when it goes to suspend, after some seconds it goes back, but the screen is freezed, brightness on. To unfreeze it i need to put it to sleep once again. and this bug wasn't before, im confused. And wifi search after suspend doesn't work, it goes to a loop and i cant do nothing
Wi-Fi in Kobos in general is not great from the start
Avatar
the wifi chip in kobos is horrible. I have a similar one in a tablet and it works on linux without many problems from 4 months ( kernel 5.x )
8:42 PM
but it can be fixed, like a error message, not a loop
Avatar
Wc121/cybertan is the worst ever.
Avatar
also, here is the hal sensor
Avatar
Oh thanks
Avatar
1 is when the magnet is near, and 0 when it goes away
Avatar
Ok yeah, so KEY_F1
8:46 PM
The interesting thing is when you run Nickel in an emulator pressing F1 on your keyboard triggers sleep mode
Avatar
thats just like linux works
8:48 PM
windows key is alt + f1 for example
Avatar
I honestly never use keybinds to put my computer to sleep mode 😂
8:50 PM
So I learnt something new today
8:54 PM
I'm wondering if it would be possible to boot into the BDK on the Nia and other devices by taking the sleep cover or a magnet as the second button https://inkbox.ddns.net/wiki/index.php?title=Basic_diagnostics_kernel That would be nice
Avatar
2 buttons
Avatar
The Nia's U-Boot supports if/else statements, so maybe we could play around with that
Avatar
Magnet + power button?
Avatar
Yeah
8:56 PM
Or just the magnet Idk
Avatar
Which what would that help, this kernel
Avatar
Not much But it might be helpful for future similar devices which have an eMMC
Avatar
I dont think anyone would want to risk bricking their ereader
Avatar
Some did See Libra H2O porting thread
Avatar
I have one, so maybe I'll try some things
Szybet pinned a message to this channel. 3/9/2022 1:03 PM
Avatar
Is this usbnet static? Or do i nead to apply it every boot
Avatar
It's static echo true > /boot/flags/USBNET_ENABLE echo 192.168.x.x > /boot/flags/USBNET_IP and it will stay like that (edited)
3:18 PM
https://inkbox.ddns.net/wiki/index.php?title=Boot_flags Check docs if you want more info on boot flags
3:22 PM
There's something like ums in U-Boot you could do without using serial to launch it
3:22 PM
Direct firmware loader mode (edited)
3:23 PM
Kernel sources for InkBox OS. Contribute to Kobo-InkBox/kernel development by creating an account on GitHub.
3:24 PM
And we could use KEY_F1 as the second key
3:27 PM
DFL basically exports the whole MMC over USB like U-Boot does but in Linux kernel
Avatar
USBNET is everything i need
Avatar
Avatar
tux-linux
It's static echo true > /boot/flags/USBNET_ENABLE echo 192.168.x.x > /boot/flags/USBNET_IP and it will stay like that (edited)
then there you go
Avatar
changing a page boosts the cpu usage to 100%
6:52 PM
👀
Avatar
it goes to sleep, and then returns from it for no reason
7:32 PM
7:33 PM
here is part of dmesg
7:33 PM
maybe becouse of usbnet now?
Avatar
it works after 5 times of trying, here is the dmesg for it. ,aybe there is some diffrence
Avatar
1 Reboot 2 Try to suspend x times 3 after x times it works, and doesn't go back its random
8:26 PM
also, it doesn't go to sleep when wifi is connected, it goes back, always
8:27 PM
where is the script / command / code responsible for suspend? @tux-linux, i could propably debug this by myself (edited)
Avatar
1 connect wifi 2 try to suspend 3 click wifi button 4 its freezed at searching for networks 5 press power button for sleep 6 it goes to sleep 7 go back 8 networks show up HMMM (edited)
Avatar
when i turn on wifi, suspend doesn't work at all
8:57 PM
now i get it, The freezes in the GUI are propably always late suspend attempts
Avatar
What's ls /dev/input?
12:40 AM
There should be event1 which should be the touchscreen
12:40 AM
Right?
8:51 AM
Yes, and?
8:54 AM
It is the touch screen, checked with cat
Avatar
I leaved it on the home screen for -+ 1.5 hours, it eated up 3% od battery
1:02 PM
🤔
Avatar
Still not bad
1:58 PM
Well, that's what I get there too
Avatar
Avatar
Szybet
Click to see attachment 🖼️
evtest /dev/input/event1 Please post event codes list
Avatar
Avatar
Szybet
changing a page boosts the cpu usage to 100%
but not for very long
Avatar
Avatar
Szybet
where is the script / command / code responsible for suspend? @tux-linux, i could propably debug this by myself (edited)
InkBox OS root filesystem. Contribute to Kobo-InkBox/rootfs development by creating an account on GitHub.
Avatar
Avatar
tux-linux
evtest /dev/input/event1 Please post event codes list
Okay, later
3:43 PM
Why do you need it?
Avatar
Avatar
tux-linux
but not for very long
A patch is going?
Avatar
Avatar
Szybet
It is the touch screen, checked with cat
oh ok
Avatar
Avatar
Szybet
A patch is going?
will work on it this week-end probably
Avatar
Avatar
Szybet
A patch is going?
But "not for very long" meant it returns to idle after finished
3:44 PM
I lost 2% in 1h reading a book on the Glo HD, so it's not too bad
Avatar
Avatar
Szybet
Why do you need it?
I don't anymore But I'd like to see what mouse0 is up to evtest /dev/input/mouse0
Avatar
Avatar
tux-linux
But "not for very long" meant it returns to idle after finished
Yes, but its still not good
Avatar
Well, I've been the only one programming this for an entire year... there are not-so-good things in InkBox, but people have to accept it I'll try to fix that issue this week-end
Avatar
Avatar
tux-linux
Well, I've been the only one programming this for an entire year... there are not-so-good things in InkBox, but people have to accept it I'll try to fix that issue this week-end
I will not accept it, i will patch it in the long future IF you dont😆
Avatar
[FBInk] [refresh_kobo_mk7] MXCFB_SEND_UPDATE_V2: Operation not permitted! [FBInk] [fbink_cls] Failed to refresh the screen! now it started doing something like this EDIT: it happens only when KOBOX ( xorg ) is enabled interesting, right? do you know why? (edited)
Avatar
im confused where is the part from going to sleep, that it returns to normal? i cant find it
Avatar
Avatar
tux-linux
I don't anymore But I'd like to see what mouse0 is up to evtest /dev/input/mouse0
reacts to touchscreen
Avatar
what is this doing, why is nowhere something that returns this to a normal state
8:34 PM
if you would describe in short what does what it would be helpfull
Avatar
[ 4673.449265] RTL871X: mmc1:0001:1: cannot remain alive while host is suspended [ 4673.449290] dpm_run_callback(): pm_generic_suspend+0x0/0x30 returns -38 [ 4673.455921] PM: Device mmc1:0001:1 failed to suspend: error -38 hmm... (edited)
8:50 PM
kobo:/dev/input# echo "mem" > /sys/power/state ash: write error: Function not implemented
8:51 PM
interesting too
Szybet pinned a message to this channel. 3/10/2022 9:10 PM
Avatar
how to monitor the power button? / the signals that linux to sleep?
Avatar
InkBox OS root filesystem. Contribute to Kobo-InkBox/rootfs development by creating an account on GitHub.
9:37 PM
After rmmod modules from wifi, suspend works
Avatar
I added this to /etc/init.d/sleep_standby.sh if [ "$DEVICE" == "n306" ]; then killall -q dhcpcd wpa_supplicant ifconfig eth0 down rmmod 8189fs.ko 2> /dev/null rmmod sdio_wifi_pwr.ko 2> /dev/null fi and now suspend works without issues. I will test it more tommorow
Avatar
Avatar
Szybet
I added this to /etc/init.d/sleep_standby.sh if [ "$DEVICE" == "n306" ]; then killall -q dhcpcd wpa_supplicant ifconfig eth0 down rmmod 8189fs.ko 2> /dev/null rmmod sdio_wifi_pwr.ko 2> /dev/null fi and now suspend works without issues. I will test it more tommorow
But then we have to handle to mess of reconnecting to the network after waking up ;p
Avatar
Avatar
Szybet
how to monitor the power button? / the signals that linux to sleep?
evtest /dev/input/event0
Avatar
Avatar
Szybet
what is this doing, why is nowhere something that returns this to a normal state
Basically, when it echo mem > /sys/power/state, the scripts hangs while the device sleeps, then when it wakes up, it executes the rest of the commands in it. (edited)
Avatar
Avatar
Szybet
[FBInk] [refresh_kobo_mk7] MXCFB_SEND_UPDATE_V2: Operation not permitted! [FBInk] [fbink_cls] Failed to refresh the screen! now it started doing something like this EDIT: it happens only when KOBOX ( xorg ) is enabled interesting, right? do you know why? (edited)
yes, very interesting, and no, I don't know why, although I'm sure X has something to do with it
Avatar
Emptying the /tmp/power file which contains event0 events to avoid memory leak (edited)
Avatar
Avatar
Szybet
Maybe your rootfs' fuse-overlayfs write cache has something in it. Try: mount /dev/mmcblk0p3 /mnt rm -rf /mnt/rootfs/write sync umount /mnt reboot
Avatar
Avatar
tux-linux
But then we have to handle to mess of reconnecting to the network after waking up ;p
The network works after that, it doesnt hang or freeze
Avatar
Avatar
tux-linux
evtest /dev/input/event0
And what file is reading from this? I want to debug why connecting or dosconnecting the cable gets the device from sleep (edited)
Avatar
Avatar
tux-linux
yes, very interesting, and no, I don't know why, although I'm sure X has something to do with it
Maybe ask the guy that developed it?
Avatar
Avatar
tux-linux
Maybe your rootfs' fuse-overlayfs write cache has something in it. Try: mount /dev/mmcblk0p3 /mnt rm -rf /mnt/rootfs/write sync umount /mnt reboot
Hmm
Avatar
Avatar
tux-linux
Emptying the /tmp/power file which contains event0 events to avoid memory leak (edited)
Why it doesnt work in a test script on my PC? Diffrent sh versions?
7:34 AM
The GUI freezes and after 2 minutes this appears, closing it makes it work back (edited)
7:35 AM
7:37 AM
Also, the GUI freezed, and after a while ot jumped from page 2 to 44. Propably touch issues? Limit the page change or smth?
Avatar
Avatar
Szybet
Also, the GUI freezed, and after a while ot jumped from page 2 to 44. Propably touch issues? Limit the page change or smth?
It happens often
Avatar
Avatar
Szybet
The GUI freezes and after 2 minutes this appears, closing it makes it work back (edited)
This too
7:45 AM
Its nearly not usable like that (edited)
Avatar
Do you know already that the epub viewer sometimes cuts off text when scalling? Even koreader has this problem, so i dont mind that much, but do you know or is it new
Avatar
Avatar
Szybet
Also, the GUI freezed, and after a while ot jumped from page 2 to 44. Propably touch issues? Limit the page change or smth?
Its horrible... Enable the next page button only the current site is loaded or something...
12:57 PM
☹
Avatar
Avatar
Szybet
Why it doesnt work in a test script on my PC? Diffrent sh versions?
Because. No explanation to give. Things like that happen to me too and at that point I'm just like "fine"
Avatar
Okay...
Avatar
Avatar
Szybet
Do you know already that the epub viewer sometimes cuts off text when scalling? Even koreader has this problem, so i dont mind that much, but do you know or is it new
Yeah, I don't have a fix, but you can use the scrollbars
Avatar
Avatar
Szybet
Its nearly not usable like that (edited)
So two days ago it worked no problem 4hrs and now it's nearly not usable? This thing is a nightmare to debug
Avatar
Avatar
Szybet
Its horrible... Enable the next page button only the current site is loaded or something...
Very good idea
Avatar
Avatar
tux-linux
So two days ago it worked no problem 4hrs and now it's nearly not usable? This thing is a nightmare to debug
It worked no problem becouse it was laying on a table, and i was clicking it carefully and slowly, but in real reading the problems accours
Avatar
Avatar
tux-linux
Yeah, I don't have a fix, but you can use the scrollbars
If there was a option to put the scrollballs even if the menu is off, it would make it the best PDF reader ( for pdfs that are images )
Avatar
Avatar
Szybet
If there was a option to put the scrollballs even if the menu is off, it would make it the best PDF reader ( for pdfs that are images )
There is
1:16 PM
Always show scrollbar In Settings
Avatar
Avatar
tux-linux
There is
Whete
1:16 PM
Really? Okay i will test it
👍 1
1:17 PM
Suspend is working now, no problems after my fix, and the battery is holding great on suspend
👍 1
Avatar
Avatar
Szybet
Click to see attachment 🖼️
Well, it's an English dictionary, so sorry
Avatar
Avatar
Szybet
The network works after that, it doesnt hang or freeze
It can't, you removed the Wi-Fi modules ! It's impossible !
Avatar
Avatar
tux-linux
Well, it's an English dictionary, so sorry
I mean, it freezes rabdomly and then the word search appears
Avatar
Oh ok
Avatar
Avatar
tux-linux
It can't, you removed the Wi-Fi modules ! It's impossible !
The script is restoring them? Or is this sarcasm
Avatar
No, it isn't, correct me if I'm wrong
Avatar
I think it is (edited)
1:21 PM
There was insmod?
Avatar
Can you check lsmod after waking up?
Avatar
Avatar
tux-linux
Can you check lsmod after waking up?
Not now, later
👍 1
Avatar
There doesn't seem to be anything like insmod there https://github.com/Kobo-InkBox/rootfs/blob/master/etc/init.d/wake_standby.sh
InkBox OS root filesystem. Contribute to Kobo-InkBox/rootfs development by creating an account on GitHub.
Avatar
Not this script
1:23 PM
This /usr/local/bin/wifi/connect_to_network.sh
Avatar
Yeah but this isn't run when you get out of sleep
Avatar
It is when i connect to wifi
Avatar
Yes
1:25 PM
But if you rmmod Wi-Fi modules before going to sleep, it makes no sense that it works on wake up
Avatar
OH, i need to recconect
1:25 PM
But thats normal?
Avatar
Yes
1:26 PM
At least
1:26 PM
;p
Avatar
For me it is, every device does that?
Avatar
Since I don't unload the modules they stay connected
Avatar
But the network dissconnects anyway?
Avatar
I don't think so
Avatar
Idk. Nia when goes to sleep dissconnects the usbnet, so Wi-Fi maybe too Wouldn't it better to unload modules for all devices? It saves battery
Avatar
Yeah will do that
1:32 PM
And then reconnect with the script automatically
Avatar
Okay, good
Avatar
Avatar
tux-linux
Yeah, I don't have a fix, but you can use the scrollbars
The scrollbar option fixes this
1:48 PM
The scrollbar if needed option is the best. Reading pdfs containing only images is a much better experience than in plato, koreader and stock nickel
1:48 PM
Fast, easy to use and clear. I would add it do the features od inkbox
👍 1
Avatar
Avatar
tux-linux
Yeah will do that
Maybe also add updating the date and time from internet when connecting to a Wi-Fi. The rtc worka horrible
👍 1
1:49 PM
I could add this too
Szybet pinned a message to this channel. 3/11/2022 1:58 PM
Avatar
Well, not google.com but yea
Avatar
Avatar
Szybet
A patch is going?
Done
Avatar
i can test it, if you create the gui bundle
Avatar
in progress
7:49 PM
done
7:49 PM
same url
Avatar
can i dirrectly update it from the kobo? i mean wget on the kobo to /opt/storage/update
Avatar
yes
7:51 PM
but you need to specify -O
7:51 PM
Also, you need to rename update-n306.isa to update.isa
7:52 PM
So wget http://23.163.0.39/bundles/private/update-n306.isa -O /data/firmware/update.isa (edited)
Avatar
data firmware?
Avatar
Then sync and restart inkbox_gui
Avatar
Avatar
Szybet
data firmware?
It's a symlink that makes more sense than /opt/storage/update
Avatar
well okay
Avatar
thats fast and much better
Avatar
Cool
8:00 PM
Now try to load a heavy ePUB, initial opening time will be longer but turning pages should be as fast (edited)
Avatar
im trying to implement time sync on kobo, i figured out there is the ntpd command, but why ntpd -n -q -N -p time.cloudflare.com gives me a hour back than my real time?
Avatar
Avatar
tux-linux
Now try to load a heavy ePUB, initial opening time will be longer but turning pages should be as fast (edited)
only epub?
Avatar
Yes
Avatar
yea its faster
👍 1
Avatar
Avatar
Szybet
im trying to implement time sync on kobo, i figured out there is the ntpd command, but why ntpd -n -q -N -p time.cloudflare.com gives me a hour back than my real time?
Maybe because you're syncing on UTC?
Avatar
Avatar
tux-linux
Maybe because you're syncing on UTC?
weird
8:06 PM
maybe wrong timezone?
Avatar
Well I haven't implemented timezones in InkBox yet
8:06 PM
So it's on UTC
8:06 PM
It probably synced correctly
Avatar
Dokładny czas teraz, strefa czasowa, różnica czasu, czas wschodu/zachodu słońca i kluczowe fakty dla UTC.
8:07 PM
its 20:00 for me
👍 1
Avatar
Avatar
tux-linux
Well I haven't implemented timezones in InkBox yet
do you plan to add it?
8:13 PM
I would like to add to /etc/ a file that says how much to add to UTC ( -1, +2 etc ) and a script in /opt/bin/ ( propably this patch, you can choose another ) that is runned when wifi connects, it uses /etc/ntp.conf for servers and sets the correct time.
8:14 PM
if you plan to add it in the future, you can build the timezones in gui and then change the file in /etc/ (edited)
Avatar
Yes, that's about the way I was planning to do it
8:16 PM
ntpd never worked out for me for some reason but if you've got a command that works I'll take it
Avatar
i can make an entire script, you just need to decide the syntax for /etc/utc_time.conf ( for example ) (edited)
Avatar
Oh; I can do it, this was the second part of my goals for today
8:17 PM
But if you want to contribute you can do it
Avatar
But I was more thinking of something like /etc/localtime and symlinks
8:18 PM
But since the rootfs is r/o by default, it will be difficult
Avatar
well, for this you need write privileges
Avatar
And we can mount the rootfs r/w, but it is usually never done So I'd prefer not do it
8:19 PM
Maybe it could be possible to use bind mounts
Avatar
maybe do tihs the same way you handle the config for the gui?
Avatar
there is /usr/share/zoneinfo already there
8:20 PM
inkbox:/# ln -s /usr/share/zoneinfo/America/New_York /etc/localtime inkbox:/# date Fri Mar 11 14:20:25 EST 2022 inkbox:/# Awesome
8:20 PM
It's the correct time here
Avatar
i will try it for me
8:21 PM
yea. this is working
Avatar
So maybe create /run/localtime or /tmp/localtime which is a symlink to /usr/share/zoneinfo/your/timezone and bind-mount that file to an empty file named localtime in /etc
Avatar
does this need rw filesystem?
Avatar
Avatar
tux-linux
So maybe create /run/localtime or /tmp/localtime which is a symlink to /usr/share/zoneinfo/your/timezone and bind-mount that file to an empty file named localtime in /etc
um what
Avatar
inkbox:/# ln -s /usr/share/zoneinfo/America/New_York /tmp/localtime inkbox:/# date Fri Mar 11 19:22:13 UTC 2022 inkbox:/# mount --bind /tmp/localtime /etc/localtime inkbox:/# date Fri Mar 11 14:22:26 EST 2022 inkbox:/# This works
Avatar
Avatar
tux-linux
inkbox:/# ln -s /usr/share/zoneinfo/America/New_York /etc/localtime inkbox:/# date Fri Mar 11 14:20:25 EST 2022 inkbox:/# Awesome
using this changed the time to the correct one, no need to move UTC hours (edited)
Avatar
Yeah, so there's only ntp sync to implement really
Avatar
give me 15 minutes
8:24 PM
is /usr/local/bin/wifi/connect_to_network.sh the main script when connecting to wifi?
Avatar
Maybe a script that reads conf info from /data/config/19-timezone/config which contains timezone config, then syncs ntp and sets timezone in /etc/localtime
Avatar
Avatar
Szybet
is /usr/local/bin/wifi/connect_to_network.sh the main script when connecting to wifi?
I'd rather do that from the Qt code
8:25 PM
But one or the other works I guess
8:26 PM
Doing it from shell might be a better idea actually
Avatar
Avatar
Szybet
is /usr/local/bin/wifi/connect_to_network.sh the main script when connecting to wifi?
yeah, it is
Avatar
Avatar
tux-linux
yeah, it is
when its connected, i just need to add one line of code
Avatar
Maybe launch /usr/local/bin/ntpsync.sh after udhcpc/dhcpcd complete
Avatar
and one file to /etc
Avatar
Yeah
8:26 PM
touch etc/localtime
Avatar
Avatar
tux-linux
Maybe launch /usr/local/bin/ntpsync.sh after udhcpc/dhcpcd complete
isin't needed
Avatar
Avatar
Szybet
isin't needed
Will be more portable
8:27 PM
If you want to run it from shell for example
8:27 PM
Maybe name it timesync.sh actually since it also changes the timezone
8:28 PM
Oh, never mind
8:28 PM
8:28 PM
thats everything whots needed
Avatar
There should be a system service that would change the timezone based on the config
Avatar
why is the time in the GUI and cmd date diffrent...
Avatar
Check /etc/init.d/hostname for example and create /etc/init.d/timezone which would change the timezone
Avatar
Avatar
tux-linux
Check /etc/init.d/hostname for example and create /etc/init.d/timezone which would change the timezone
first i woul need the config
Avatar
Then chmod +x and symlink /etc/init.d/timezone to /etc/runlevels/boot/timezone to make it run at boot
8:31 PM
At /data/config? (edited)
8:31 PM
Yeah, I don't know how to handle that Also, the timezones list will be massive
8:32 PM
I'd suggest that /data/config/19-timezone/config would point to a path in the rootfs, for example /usr/share/zoneinfo/America/New_York
8:32 PM
Then the timezone service would symlink /tmp/localtime to the file specified in the config
Avatar
Avatar
tux-linux
Yeah, I don't know how to handle that Also, the timezones list will be massive
make a search bar
Avatar
you implement this, not me.......
8:33 PM
this would probably be the most complicated thing ever
8:33 PM
well, idk
8:33 PM
depends on what we are talking about
8:34 PM
Maybe something similar to book search
Avatar
Avatar
tux-linux
inkbox:/# ln -s /usr/share/zoneinfo/America/New_York /tmp/localtime inkbox:/# date Fri Mar 11 19:22:13 UTC 2022 inkbox:/# mount --bind /tmp/localtime /etc/localtime inkbox:/# date Fri Mar 11 14:22:26 EST 2022 inkbox:/# This works
does this ln -s dissapear after reboot?
Avatar
yes
Avatar
oh thats the problem
Avatar
that's why we need to put it in a system service
8:34 PM
so it runs at each boot
8:34 PM
Actually, it might even be better if it was in the initrd
Avatar
Avatar
tux-linux
Actually, it might even be better if it was in the initrd
hm?
Avatar
Well, some things like the ENCRYPT_LOCK flag which locks down the device for a day if the user enters too much wrong passphrases to unlock their encrypted storage would be affected
8:36 PM
But that's based on the epoch UNIX time
8:36 PM
So it might not be affected actually
8:36 PM
Ok, it won't be affected, I just checked
8:36 PM
So we can do this in the rootfs
Avatar
yeah, otherwise the script calls exit 1 if there is an error
Avatar
okay, so just add ntpd -n -q & at the end
8:39 PM
or without &
Avatar
Not the &
8:39 PM
not at the end
Avatar
yea, if the parrent exits it will kill him
8:40 PM
why?
Avatar
maybe you can
Avatar
why why not
8:41 PM
$? is exit status of fi
8:41 PM
wow.....
Avatar
it will always quit on success if the dhcp request fails
Avatar
well, then repair it
Avatar
i'll make this a var real quick
Avatar
you can add ntpd -n -q too
Avatar
inkbox:/usr/share/openrc/support# test=1 inkbox:/usr/share/openrc/support# if test=1; then false; fi inkbox:/usr/share/openrc/support# $? -ash: 1: not found inkbox:/usr/share/openrc/support# inkbox:/usr/share/openrc/support# if test=1; then true; fi inkbox:/usr/share/openrc/support# $? -ash: 0: not found inkbox:/usr/share/openrc/support# Actually, it seems I'm wrong (edited)
Avatar
and /etc/ntp.conf server 0.pool.ntp.org server 1.pool.ntp.org server 2.pool.ntp.org server 3.pool.ntp.org (edited)
Avatar
Avatar
tux-linux
inkbox:/usr/share/openrc/support# test=1 inkbox:/usr/share/openrc/support# if test=1; then false; fi inkbox:/usr/share/openrc/support# $? -ash: 1: not found inkbox:/usr/share/openrc/support# inkbox:/usr/share/openrc/support# if test=1; then true; fi inkbox:/usr/share/openrc/support# $? -ash: 0: not found inkbox:/usr/share/openrc/support# Actually, it seems I'm wrong (edited)
i dont understand at all
Avatar
Avatar
Szybet
i dont understand at all
Based on my logic, $? should always be 0 since the fi command is successful
8:45 PM
But it seems that ash is smart enough not to give fi an exit status
Avatar
Avatar
Szybet
why why not
You can add it at the end it's fine (edited)
8:50 PM
couldn't we just symlink /etc/timezone to /data/config/19-timezone/config?
Avatar
what?
Avatar
or do you want in this config to write the path in text
Avatar
Avatar
Szybet
couldn't we just symlink /etc/timezone to /data/config/19-timezone/config?
/etc/localtime to /data/config/19-timezone/config? (edited)
Avatar
Avatar
Szybet
or do you want in this config to write the path in text
yes, or this?
Avatar
/data/config/19-timezone/config would need to contain the contents of the corresponding file in /usr/share/zoneinfo
8:51 PM
or maybe make it a double symlink
Avatar
Avatar
tux-linux
/data/config/19-timezone/config would need to contain the contents of the corresponding file in /usr/share/zoneinfo
so a symlink could be good
Avatar
i'm trying it now
Avatar
and a system service wouldn't be needed
Avatar
inkbox:/# ls -shal /etc/localtime 0 lrwxrwxrwx 1 root root 31 Mar 11 14:53 /etc/localtime -> /data/config/19-timezone/config inkbox:/# ls -shal /data/config/19-timezone/config 0 lrwxrwxrwx 1 root root 36 Mar 11 14:52 /data/config/19-timezone/config -> /usr/share/zoneinfo/America/New_York inkbox:/# date Fri Mar 11 14:53:59 EST 2022 inkbox:/# It seems to work
8:54 PM
Go ahead
Avatar
so a system service isin't needed
8:54 PM
great
Avatar
ouch inkbox:/# date Fri Mar 11 14:53:30 EST 2022 inkbox:/# chroot /kobo inkbox:/# date Fri Mar 11 19:54:37 UTC 2022 inkbox:/#
8:55 PM
It seems it isn't working across chroots and /kobo is the GUI chroot
Avatar
this explains why the date isin't correctly showing on the gui
Avatar
Avatar
tux-linux
It seems it isn't working across chroots and /kobo is the GUI chroot
maybe a reboot is needed? (edited)
Avatar
Which, of course, doesn't contain zoneinfo (and the squashfs containing that filesystem isn't upgradable) inkbox:/# ls usr/share/zoneinfo ls: usr/share/zoneinfo: No such file or directory inkbox:/# (edited)
Avatar
Avatar
Szybet
maybe a reboot is needed? (edited)
i would doubt that
Avatar
maybe copy the file to /kobo
8:57 PM
its only 3 KB
Avatar
Maybe something similar to this [ ! -e "/kobo/opt/version" ] && touch /kobo/opt/version
Avatar
maybe a mount bind?
Avatar
[ ! -e "/kobo/usr/share/zoneinfo" ] && mkdir -p /kobo/usr/share/zoneinfo [ ! -e "/kobo/etc/localtime" ] && touch /kobo/etc/localtime mount --bind /usr/share/zoneinfo /kobo/usr/share/zoneinfo mount --bind /etc/localtime /kobo/etc/localtime (edited)
Avatar
exactly
Avatar
I'll add that to the inkbox_gui, unless you want to do it
9:00 PM
Insert the above code under that line [ ! -e "/kobo/bin/kobo_config.sh" ] && touch /kobo/bin/kobo_config.sh
Avatar
Avatar
tux-linux
I'll add that to the inkbox_gui, unless you want to do it
you mean?
Avatar
/etc/init.d/inkbox_gui
Avatar
Since you are already working on other files, maybe it's good to have that in one commit only
9:02 PM
i edited the sleep_standby.sh to shut down wifi for all devices
9:02 PM
can you verify?
Avatar
Avatar
tux-linux
Since you are already working on other files, maybe it's good to have that in one commit only
on which files?
Avatar
sleep_standby.sh for example Well, to avoid a merge by pulling my commits
Avatar
Avatar
tux-linux
sleep_standby.sh for example Well, to avoid a merge by pulling my commits
Its propaply the only one maybe connect_to_network.sh with the ntpd one line
Avatar
Avatar
Szybet
Click to see attachment 🖼️
It seems fine Now we need to tell it to auto-reconnect
Avatar
and /etc/ntp.conf
Avatar
Avatar
tux-linux
It seems fine Now we need to tell it to auto-reconnect
wake standby script
Avatar
yes
Avatar
turning on the modules and interphace isin't enough?
Avatar
is it enough on your kobo?
Avatar
i can check that, but my kobo never recconects to a wifi
Avatar
ok, I think I will do the modifications here and mention you in the commit
Avatar
so you will push them all?
Avatar
yeah
Avatar
sure, it will be cleaner
Avatar
send me the modified files (not just their contents, the file itself) and I'll put them in my tree
Avatar
so: connect_to_network.sh /etc/ntp.conf wake standby sh sleep standby sh
9:10 PM
and there is the symlink of /etc/timezone to /data/config
Avatar
/etc/localtime you mean?
9:10 PM
wait, i will check it it recconects
👍 1
Avatar
Avatar
Szybet
and there is the symlink of /etc/timezone to /data/config
i cant send it, so you need to symlink it on your own
Avatar
sure
Szybet pinned a message to this channel. 3/11/2022 9:11 PM
Avatar
% sshfs root@192.168.0.1:/ /mnt/Partition root@192.168.0.1's password: read: Connection reset by peer why sshfs is not working?
Avatar
what are you trying to do?
9:13 PM
i think it needs a helper on the client
9:14 PM
did you modify the files directly on the kobo?
Avatar
Avatar
tux-linux
what are you trying to do?
sshfs is cool
Avatar
i know
Avatar
Avatar
tux-linux
i think it needs a helper on the client
no, it workes on nickel
Avatar
Avatar
tux-linux
did you modify the files directly on the kobo?
i will scp
Avatar
then no idea
Avatar
Avatar
Szybet
i will scp
mount /dev/mmcblk0p3 /mnt mksquashfs /mnt/rootfs/write /tmp/rootfs-write.sqsh umount /mnt
9:15 PM
That will take all the files you modified
Avatar
why not simply ifsctl mnt rootfs rw
Avatar
that mounts the rootfs rw
9:16 PM
what I wrote above takes all the write cache and compresses it into a squashfs
9:17 PM
so if you modified /usr/local/bin/wifi/connect_to_wifi.sh, /mnt/rootfs/write will contain a copy of this file that is modified it's why it's called overlayfs
Avatar
oh okay
Avatar
it overlays a writeable part over a read-only filesystem (squashfs)
Szybet pinned a message to this channel. 3/11/2022 9:17 PM
Avatar
cool, but i already did ifsctl
Avatar
it has nothing to do with that
9:18 PM
when you issue ifsctl mnt rootfs rw, it remounts the rootfs rw and all the writes are redirected to [p3]/rootfs/write
9:18 PM
so if you do touch /test, a file named test will be at [p3]/rootfs/write/test
9:18 PM
and the rootfs squashfs will stay the same
Avatar
that's why earlier you were wondering why your connect_to_wifi script didn't have the contents of the latest commits; because you had modified it before
9:19 PM
the modified version takes precedence on the existing version
9:21 PM
i forgot about a line in connect_to_network.sh, good that im testing that
👍 1
Avatar
have you tested if it reconnects automatically on wake up?
Avatar
it does not even go to sleep, i need to add killall -q dhcpcd wpa_supplicant
Avatar
well, if i kill them and then launch there is no way they will reconect
Avatar
before ifconfig wifi_dev down i guess?
Avatar
Avatar
Szybet
well, if i kill them and then launch there is no way they will reconect
Yeah, so then we can work with the available info at /data/config/17-wifi_connection_information
9:24 PM
And re-launch /usr/local/bin/wifi/connect_to_network.sh with those strings (edited)
Avatar
oh i can do this
Avatar
it will mess up the tree
Avatar
in a seperate file? like recconect.sh?
Avatar
Avatar
tux-linux
it will mess up the tree
you mean git? i can send you the file
Avatar
yeah ok
9:25 PM
Well, I'll send you my sleep_standby.sh script before
Avatar
thats mine
Avatar
they are the same, i used the one from git
Avatar
I added a check to see if the interface is up or not before removing modules, etc.
Avatar
oh okay
Avatar
Avatar
Szybet
they are the same, i used the one from git
no, it's the one with my additions + the wifi down part you added earlier
Avatar
what about if [ "${DEVICE}" == "n705" ] || [ "${DEVICE}" == "n905b" ] || [ "${DEVICE}" == "n905c" ] || [ "${DEVICE}" == "n613" ] || [ "${DEVICE}" == "n437" ]; then wlarm_le down fi
Avatar
oh yes
9:29 PM
Avatar
how to check if to restore wifi, when going from sleep?
Avatar
Avatar
Szybet
how to check if to restore wifi, when going from sleep?
if [ "$(cat /sys/class/net/${WIFI_DEV}/operstate)" == "up" ]; then echo "true" > /tmp/was_connected_to_wifi fi (edited)
9:33 PM
And deal with that file on wake up Don't forget to rm -f it once you've read its contents (edited)
9:36 PM
It's actually /sys/class/net/${WIFI_DEV}/operstate); added it above
Avatar
if [ "$(cat /tmp/was_connected_to_wifi)" == "true" ]; then ifconfig "${WIFI_DEV}" up insmod "${WIFI_MODULE}" 2> /dev/null insmod "${SDIO_WIFI_PWR_MODULE}" 2> /dev/null ESSID=`cat /data/config/17-wifi_connection_information/essid` PASSPHRASE=`cat /data/config/17-wifi_connection_information/passphrase` /usr/local/bin/wifi/connect_to_network.sh "${ESSID}" "${PASSPHRASE}" rm -f /tmp/was_connected_to_wifi fi
9:38 PM
i will test it now
Avatar
better to use $(command) in place of backticks and if grep -q "true" /tmp/was_connected_to_wifi
9:39 PM
also, it's in the wrong order
Avatar
Avatar
tux-linux
also, it's in the wrong order
:/...
9:40 PM
okay
Avatar
insmod sdio_wifi_pwr, then wifi module, then wlarm_le up for devices that need it, then interface up, then connect (edited)
Avatar
oh right
9:41 PM
do i need it to change it to the grep?
Avatar
if you want I can do it here after
9:41 PM
the important thing would be to get the snippet of code working
Avatar
can you look at the "word search" and "pages are switching like crazy" problems i described before?
Avatar
currently doing timezone stuff
Avatar
did it happen with the latest gui bundle? maybe the speed of the page turning has improved it
Avatar
hmm, i will check it
9:45 PM
but a limiter for the page change is needed anyway
Avatar
hmm
Avatar
it works
Avatar
nice
Avatar
but it takes a while
Avatar
how much time does it take?
9:52 PM
ah
Avatar
idk, 90 s?
Avatar
we can probably run it in the background
Avatar
you mean
9:52 PM
?
Avatar
if the user tries to connect to wifi in the gui during that period, we can show a message like "connection already in progress" or something
Avatar
yes you can, a simple ps | grep connect_to_network could make it work
Avatar
i was thinking of something more reliable than that ;p
9:54 PM
but yeah, it's the idea
9:55 PM
FWIW, since the GUI is running in a chroot, it needs to send commands to a fifo to get them executed in the rootfs That's how Wi-Fi connection is handled: https://github.com/Kobo-InkBox/rootfs/blob/5815843d6209188b8d07994bc47b3a1c3b85ca0b/etc/init.d/ibxd#L67-L77
Avatar
complicated
Avatar
yeah, but otherwise it's really a mess
9:56 PM
so the GUI has a while true loop which checks the contents of the wifi_connected_successfully file and stops when there is something like 'false' or 'true' in it
9:58 PM
yay inkbox:~# date Fri Mar 11 20:58:26 UTC 2022 inkbox:~# chroot /kobo inkbox:/# date Fri Mar 11 15:58:29 EST 2022 inkbox:/#
9:58 PM
(well, not the first part, but at least it works in the chroot)
Avatar
syncing time also works
Avatar
cool
Avatar
so i will send the files
👍 1
Avatar
ok thanks
Avatar
Avatar
tux-linux
(well, not the first part, but at least it works in the chroot)
so the gui will show the right time?
Avatar
I wonder if it should be /tmp/was_connected_to_wifi or /run/was_connected_to_wifi
Avatar
idk, you decide
Avatar
well, ibxd puts wifi_connected_successfully in run so I guess it'll be run
Avatar
can i disable global readings settings for remembering when i last readed the book?
10:08 PM
i worked on that this morning too it should be more reliable
10:09 PM
my reader framework is really a mess it took me 15 mins to understand what my own program is actually doing ;p (edited)
Avatar
i think its normal
Avatar
have you read reader.cpp ?
10:10 PM
good luck
10:10 PM
not everything is a mess in the file, but more the setup_book function and relatives
Avatar
the change page button still does change too many pages when i click on it too much, but it does not freeze. ( so it will propably change to many pages when i will be using the ereader serious, in school or smth )
👍 1
10:12 PM
so this needs to improve, and maybe thats it?
Avatar
ok, so I'll try to implement some sort of 'blocker' while it's turning the pages
10:13 PM
this is fine, but that means it won't be able to go to sleep until it has reconnected to wi-fi
10:13 PM
10:14 PM
Since it's sleep_standby's job
Avatar
maybe a button in settings to choose if it would recconect?
Avatar
yeah, but if you move around and don't have access to the network anymore
10:15 PM
maybe a 'cancel reconnect' or something
Avatar
is it normal that connecting the usb cable gets the device back from sleep?
Avatar
Maybe the user would click one time to connect to Wi-Fi after waking up, it would say "Click again to cancel reconnect" and on the second click on the Wi-Fi icon it would cancel
Avatar
Avatar
Szybet
is it normal that connecting the usb cable gets the device back from sleep?
yes
10:16 PM
does that even in Nickel
Avatar
Avatar
tux-linux
yes
and when battery hits 100%?
Avatar
Avatar
tux-linux
Maybe the user would click one time to connect to Wi-Fi after waking up, it would say "Click again to cancel reconnect" and on the second click on the Wi-Fi icon it would cancel
maybe
👍 1
Avatar
but i don't really know what to tell you about this
Avatar
its not a big issue
10:22 PM
did you implement the magnes thing?
Avatar
Those are all my changes currently
Avatar
Avatar
Szybet
did you implement the magnes thing?
sleep cover? no
Avatar
Avatar
tux-linux
Those are all my changes currently
I'll push a commit and you can try on your device
Avatar
oh yes, i forgot about hwclock --systohc
Avatar
done
Avatar
Avatar
tux-linux
sleep cover? no
could you? or is it a big issue to make
Avatar
I guess it's easy
Avatar
thats the last thing thats missing on nia
Avatar
I forgot to mention you in the commit; I'll do it in the next one when we fix things I guess
Avatar
maybe xorg, but xorg isin't important
Avatar
Avatar
Szybet
maybe xorg, but xorg isin't important
did you asked the maintainer?
10:27 PM
I highly doubt he has an idea
10:27 PM
The problem was that you couldn't suspend while in X, right?
Avatar
Avatar
Szybet
[FBInk] [refresh_kobo_mk7] MXCFB_SEND_UPDATE_V2: Operation not permitted! [FBInk] [fbink_cls] Failed to refresh the screen! now it started doing something like this EDIT: it happens only when KOBOX ( xorg ) is enabled interesting, right? do you know why? (edited)
this
10:28 PM
i think suspend is fixed for good, becouse of wifi
Avatar
Avatar
Szybet
[FBInk] [refresh_kobo_mk7] MXCFB_SEND_UPDATE_V2: Operation not permitted! [FBInk] [fbink_cls] Failed to refresh the screen! now it started doing something like this EDIT: it happens only when KOBOX ( xorg ) is enabled interesting, right? do you know why? (edited)
you mean, in Qt gui too?
Avatar
well, in qt gui only?
Avatar
so that means you have the problem I have on my Libra but I never disable X on my Libra so I think it is permanent
10:29 PM
oh; awesome
Avatar
propably
Avatar
well, not awesome, but it's nice to know that it can probably be circumvented on the libra by disabling x11
10:30 PM
and it does that randomly, right?
10:30 PM
xorg isin't that important, those are ereaders
Avatar
idle sleep is working too btw
10:31 PM
so everything, exept the magnet
Avatar
nice
Avatar
when will you implement the magnet?
Avatar
this week-end?
Avatar
you mean tommorow, sunday?
Avatar
might be there
10:33 PM
i will test more until then
Avatar
actually it might just be as easy as that (edited)
414 bytes
10:34 PM
try it
Avatar
its working
10:43 PM
its not a ideal and clear solution
10:44 PM
but it is
Avatar
Avatar
Szybet
its not a ideal and clear solution
?
Avatar
/tmp/power looks like this most of the time: Event: time 1647034909.855898, type 1 (EV_KEY), code 59 (KEY_F1), value 0 Event: time 1647034909.855898, -------------- SYN_REPORT ------------
Avatar
yeah
10:45 PM
and?
Avatar
its writing to it all the time
10:45 PM
is it good? performance eating?
10:45 PM
usually, CPU is at 2-3% at idle
Avatar
its jumping 3-6-8-12% all the time
10:47 PM
not stable
10:47 PM
its not bad
👍 1
10:47 PM
and the cpu is propably weakier
10:50 PM
is the time in the gui fixed, all commits pushed? i would like to update the rootfs
Avatar
not fixed yet
10:51 PM
but you can update the rootfs
Avatar
Avatar
tux-linux
not fixed yet
well, you can't set the timezone in the gui
10:51 PM
if you set via cli, it works
Avatar
thats what i asked for
Avatar
erase your overlayfs cache
tux-linux pinned a message to this channel. 3/11/2022 10:52 PM
Avatar
I pinned the commands
Avatar
hmm scp rootfs.squashfs root@192.168.0.1:/mnt/ now i know this isin't a good idea
11:10 PM
so how do i update the rootfs without u-boot?
Avatar
you technically can but load busybox binary into ram before (just run busybox) without any arguments then busybox sync busybox reboot (edited)
11:16 PM
it's not clean, it's an horrible idea, but I guess it does the job
Avatar
nope, nothing worked
11:17 PM
i will tommorow open in and do it properly
11:17 PM
what is the best way to do this ( without opening )? (edited)
Avatar
Avatar
Szybet
i will tommorow open in and do it properly
did it transfer?
Avatar
Avatar
Szybet
what is the best way to do this ( without opening )? (edited)
via u-boot/DFL or an update package (edited)
Avatar
Avatar
tux-linux
did it transfer?
it did ( i think ) , then everything stopped working and i couldn't the openssl file
Avatar
you should have scp'ed them at the same time
11:20 PM
after error code 3, does it reboot or go shutdown?
Avatar
shutdown
Avatar
You can try encrypted storage if you want btw
6:57 AM
So you need to update the rootfs and the GUI bundle
Avatar
with what do you open your kobos? im using this below but it damages a bit the plastic. maybe there is a better way
Avatar
credit card
Avatar
no way ot will work (edited)
1:57 PM
maybe the nia is tightener
Avatar
usually I start if a knife, and once some place in the back has enough damage I can fit a credit card to open the entire device
1:57 PM
well, it isn't ideal, but that's what happened with my Libra
Avatar
a knife will damage it too
Avatar
there's something called a spudger
1:58 PM
i don't have that
1:58 PM
this one?
Avatar
more like that
Avatar
tryied with it, no chance
2:00 PM
( for the nia )
Avatar
well, then I don't know
2:12 PM
this e 😆 (edited)
Avatar
Whoa
2:17 PM
It should not be like that
2:17 PM
Do you have x enabled?
Avatar
Avatar
tux-linux
Do you have x enabled?
disabled
Avatar
Avatar
Szybet
i dont really know if this patched the issue
Well, it disables the button when you click it and enables it back when the page is loaded
2:21 PM
If that doesn't fix your issue then nothing can
Avatar
Avatar
tux-linux
Well, it disables the button when you click it and enables it back when the page is loaded
so in theory if i spam click the button it shouldn't switch more than 1 page?
Avatar
No It will switch one, two, three pages once the page before has been correctly loaded, although might be not fully printed on the screen yet
2:22 PM
So it ensures each page is properly loaded before loading a new one
Avatar
so it doesn't work
Avatar
Well, use the go to function if you want to spam page turns
Avatar
i mean that propably when using the reader some times it will jump 2 pages
Avatar
It never does that on my devices
Avatar
maybe i click not exact
2:26 PM
its not a big issue
Avatar
Ok, what about Wi-Fi reconnection on wake up?
Avatar
Avatar
tux-linux
Ok, what about Wi-Fi reconnection on wake up?
i will check it, first how do i set the timezone now
2:27 PM
from cli
Avatar
You need to symlink a zoneinfo file to /data/config/19-timezone/config Use ln -sf
Avatar
ln -sf /data/config/19-timezone/config /usr/share/zoneinfo/Poland ?
Avatar
The opposite
2:29 PM
But yeah
Avatar
ln -sf /usr/share/zoneinfo/Poland /data/config/19-timezone/config
2:30 PM
okay
Avatar
Yes
Avatar
recconecting works
2:42 PM
time works too
2:42 PM
perfect
Avatar
Awesome
Avatar
Avatar
Szybet
Click to see attachment 🖼️
um, when did you fixed this
2:48 PM
it works
2:49 PM
where is the list of supported devices?
2:52 PM
i really think you can add to them the kobo nia
2:52 PM
and the kobo libra, with a note that xorg doesn't work correctly
Avatar
I'll add them once I release 1.9
3:03 PM
I have closed the issue on github
Avatar
Avatar
tux-linux
Ok, what about Wi-Fi reconnection on wake up?
i cant go to sleep until it recconects, but yea
3:16 PM
oh, i need to click 2 times
3:16 PM
okay
3:17 PM
and it went back from sleep and asks me to choose the network
Avatar
Yeah, because you clicked two times
Avatar
i have updated the guide, some parts need more clarification https://github.com/Szybet/kobo-nia-audio/blob/main/inkbox.md
Kobo nia ereader with audio added. Contribute to Szybet/kobo-nia-audio development by creating an account on GitHub.
👍 1
Avatar
The device will sometimes not go to sleep when the modules are loaded, even if the interface is down
Avatar
No, it's because the operstate file in sysfs shows down even if the modules are loaded and the interface is up, it shows "up" only when the interface has got an IP
Avatar
its still if its down
Avatar
Avatar
Szybet
its still if its down
?
Avatar
Avatar
tux-linux
No, it's because the operstate file in sysfs shows down even if the modules are loaded and the interface is up, it shows "up" only when the interface has got an IP
yes, and?
Avatar
Well, if you searched for networks but didn't connect, it will fail to sleep
Avatar
look 1 interface is down 2 modules are loaded 3 sleep doesn't work
12:33 AM
Idk
Avatar
"tap again" where to tap? at the wifi button?
Avatar
Maybe get out the block of code removing the WiFi modules from the if statement and put it before
Avatar
Avatar
Szybet
"tap again" where to tap? at the wifi button?
Yes? Isn't that intuitive?
Avatar
Avatar
tux-linux
Yes? Isn't that intuitive?
i ask becouse it doesn't work. when i click again it shows the "searching for network" label
Avatar
Yes, that's what it's supposed to do ...?
Avatar
Avatar
tux-linux
Maybe get out the block of code removing the WiFi modules from the if statement and put it before
then it will rm them 2 times sometimes. But it doesn't matter, do as you would like, its just code preferency look
Avatar
Avatar
Szybet
then it will rm them 2 times sometimes. But it doesn't matter, do as you would like, its just code preferency look
I'll do that later tonight
Avatar
Avatar
tux-linux
Yes, that's what it's supposed to do ...?
Tap again to cancel, not to search for networks?
Avatar
To cancel the reconnection
12:37 AM
And connect to another network
12:38 AM
That's how I see it ?...
12:38 AM
o thought it will shut down the wifi
👍 1
12:44 AM
could i add a service that will check the power button, and if it will clicked it will stop wake_standby and start sleep_standby? it would remove the problem that after going from sleep it cant go to sleep again? (edited)
Avatar
That would cause some unwanted problems
Avatar
Maybe I could add something related to what Qt does when it cancels reconnect
Avatar
Avatar
Szybet
could i add a service that will check the power button, and if it will clicked it will stop wake_standby and start sleep_standby? it would remove the problem that after going from sleep it cant go to sleep again? (edited)
7:01 AM
But at least it's done and it works (hopefully) Edit: don't expect it to work. I tested on my Touch and it's still not acting properly. Will try to fix soon (edited)
Avatar
But if you can, please look and tell me if you see something in the commit that should not be there or if it is missing. The modules removal part is 100% fixed now, but going to sleep while reconnecting still gives problems.
7:28 AM
I'm going to sleep now. Enough of this shit for tonight 😂
Avatar
Its even more complicated
Avatar
i know
2:30 PM
but it works on my Kobo, so I guess it might on yours too
Avatar
i will test later could you show me a place where i can ask question about qt? i have some questions and i cant find answers
Avatar
Qt discord
2:36 PM
But it might be too specific if you want to setup a cross compile environment; maybe ask pgaskin, NiLuJe or sherm_p on this server
Avatar
Avatar
tux-linux
Qt discord
i will try
Avatar
Avatar
tux-linux
But it might be too specific if you want to setup a cross compile environment; maybe ask pgaskin, NiLuJe or sherm_p on this server
first I want to learn qt, then use it on the kobo
👍 1
Avatar
Avatar
tux-linux
but it works on my Kobo, so I guess it might on yours too
what should i test?
7:22 PM
also, how bad is porting a qt cpp app to kobo?
Avatar
Avatar
Szybet
also, how bad is porting a qt cpp app to kobo?
once you have the setup, it's easy
Avatar
Avatar
Szybet
what should i test?
1. Put it to sleep and wake it up, not connected to any Wi-Fi network. Should work as usual. 2. Connect to a Wi-Fi network. Then, put it to sleep and wake it up. 3. Wait until the Wi-Fi has reconnected (the Wi-Fi icon updates each 10s) and then put it to sleep. 4. Wake it up and put it back to sleep again while it's reconnecting. Then wake it up. It should not attempt to connect to any network at this point.
Avatar
4 doesn't work
Avatar
which part?
Avatar
Well, it fails at which sub-step?
Avatar
you know that nia will not go to sleep if modules are loaded?
Avatar
yes
7:38 PM
They are removed
Avatar
it simply doesn't respond for the power button
7:40 PM
no sleeping splash screen
Avatar
can you still interact with the ui? (edited)
Avatar
Avatar
Szybet
it simply doesn't respond for the power button
how much time did you wait after it woke up and started reconnecting?
Avatar
Avatar
tux-linux
how much time did you wait after it woke up and started reconnecting?
30s
Avatar
Maybe it had already reconnected (edited)
Avatar
i mean
7:42 PM
after going back from sleep i clicked the power button instantly
7:42 PM
but no reaction
Avatar
Avatar
Szybet
but no reaction
I think it's at least 3-4 secs before it can react, it has to go through other steps in the scripts before
7:47 PM
I'll try on other models
Avatar
Avatar
tux-linux
I think it's at least 3-4 secs before it can react, it has to go through other steps in the scripts before
nope, still doesn't react
Avatar
Ok. Please reboot, then do the following: cp /etc/init.d/sleep_standby.sh /etc/init.d/wake_standby.sh /tmp vi /tmp/sleep_standby.sh # Replace first line with '#!/bin/bash -x' vi /tmp/wake_standby.sh # Replace first line with '#!/bin/bash -x' mount --bind /tmp/sleep_standby.sh /etc/init.d/sleep_standby.sh mount --bind /tmp/wake_standby.sh /etc/init.d/wake_standby.sh killall sleep_standby.sh wake_standby.sh # If nothing found, try to find processes with `ps' and kill the PID related to those scripts rc-service sleep_standby stop rc-service wake_standby stop rc-service sleep_standby start -d Then redo the steps above and post terminal output. It's a truckload of info, so it will probably be useful for debugging.
7:53 PM
Actually, only do step 3 and 4.
Avatar
Avatar
Szybet
nope, still doesn't react
have you tried pressing it more than one time?
Avatar
Avatar
tux-linux
have you tried pressing it more than one time?
yes, and then after 2 minutes it gos to sleep and doesn't want to go back
Avatar
well, that is a kernel issue no idea
7:58 PM
The early wake-up part is handled by the kernel If the screen didn't refresh when you clicked the power button, it's a kernel issue
Avatar
it works, i needed to clear the write cache something
8:33 PM
Avatar
Avatar
Szybet
it works, i needed to clear the write cache something
What works?
Avatar
everything
Avatar
Avatar
tux-linux
1. Put it to sleep and wake it up, not connected to any Wi-Fi network. Should work as usual. 2. Connect to a Wi-Fi network. Then, put it to sleep and wake it up. 3. Wait until the Wi-Fi has reconnected (the Wi-Fi icon updates each 10s) and then put it to sleep. 4. Wake it up and put it back to sleep again while it's reconnecting. Then wake it up. It should not attempt to connect to any network at this point.
from here
Avatar
Nice
Avatar
usb storage will not work with usbnet, right?
Avatar
yes, but it removes usbnet modules before inserting mass storage ones
10:46 PM
so you lose usbnet while in mass storage
10:46 PM
it restarts it after if you have it enabled
Avatar
so nothing works?
Avatar
not while you're in mass storage
10:47 PM
wi-fi still works though
10:47 PM
you can ssh that way
Avatar
sshfs would be nice to get working
Avatar
you can try
Avatar
to enable sshfs its needed to add Subsystem sftp internal-sftp to /etc/ssh/sshd_config
Szybet pinned a message to this channel. 3/13/2022 11:03 PM
Avatar
Avatar
Szybet
to enable sshfs its needed to add Subsystem sftp internal-sftp to /etc/ssh/sshd_config
oh cool
Avatar
writing doesn't work
Avatar
i will debug it later
11:08 PM
using sshfs
Avatar
did you mount rootfs r/w? (edited)
Avatar
/data/onboard/
Avatar
strange
Avatar
scp works
11:08 PM
then idk
Avatar
I put yesterday my nia in the bag, now I look it was in the menu and 39%... Weird
3:22 PM
I have a case that prevents the power key from being clicked, and it goes to sleep after 15 minutes
Avatar
idk
6:38 PM
Sleep timeout is a nice workaround
Avatar
Avatar
tux-linux
Sleep timeout is a nice workaround
I had it enabled
6:41 PM
strange
6:42 PM
i will test it more, maybe a one time event ( maybe the ereader was next to a tablet, and the tablet had magnets in it )
Avatar
i charged it up at 17:00, now at 21:30 it has 87%
9:28 PM
thats concerning
9:29 PM
and it was sleeping the whole time
9:29 PM
maybe becouse of usbnet?
Avatar
Strange
Avatar
there is no way powertop would work there, right?
Avatar
Idk
9:41 PM
You can check cpu usage with htop maybe
Avatar
it jumps 4-8-12% all the tim
Avatar
Maybe check dmesg, there might be power info
9:44 PM
[ 5.614571] syscon-poweroff 20cc000.snvs:snvs-poweroff: pm_power_off already claimed 80021c08 ntx_machine_poweroff [ 5.625116] syscon-poweroff: probe of 20cc000.snvs:snvs-poweroff failed with error -16
9:46 PM
maybe some kernel options to enable more power saving features?
9:46 PM
i will need to tinker with that
Avatar
I'm planning to release 1.9 soon, since we have pretty much everything ready. Any features/fixes/something I forgot about?
Avatar
  • sliders too small
+ settings arrows to choose numbers are to small
  • last book menu is simply not good
  • improve wifi control maybe?
  • file chooser 🤮 those are the most important in my opinion
(edited)
Avatar
those will be for 2.0
10:20 PM
Maybe the last thing to add to 1.9 would be an option to turn wi-fi off
Avatar
i don't know if something is possible for the sliders and settings arrows
10:21 PM
it's like we'd have to scale only one part of the UI but not all of it idk
Avatar
settings arrows - replace with something else for sliders it must be possible, QT is not that static?
Avatar
Avatar
Szybet
settings arrows - replace with something else for sliders it must be possible, QT is not that static?
what? it's a qspinbox for sliders... maybe (edited)
Avatar
I need badly to increase size of handle for my slider, but no css options can do this(styleSheet()). The default example from Qt docs didn't help me as well. I have a slider like this: I wish to
Avatar
oh it seems possible yeah
Avatar
for settings arrow, replace it with a keyboard with only numbers
Avatar
Are you crazy? This will probably take more time to change and be more CPU-consuming than using the arrows
10:24 PM
huh only numbers
10:24 PM
like the Go to page thing?
Avatar
Avatar
tux-linux
like the Go to page thing?
exactly
Avatar
I created a small GUI in QtCreator and had it converted to python to execute on a Raspberry Pi. issue is the QSpinBox buttons are only scaled by QSpinBox height. how can i increase the width of the
10:25 PM
It's actually possible
Avatar
but inkbox is not written in python right?
10:25 PM
well its still qt
Avatar
doesn't matter
10:26 PM
pyqt and qt share stylesheets
10:26 PM
and usually adapting the python code is not that hard
10:26 PM
Python and C++ are quite similar in some ways
Avatar
for some things
Avatar
how do i unload usb modules? they are busy
10:54 PM
resource busy
Avatar
are you in usbnet?
10:56 PM
rmmod -f ?
Avatar
Avatar
tux-linux
are you in usbnet?
ssh
Avatar
well, ssh with wifi?
Avatar
kobo:~# rmmod -f configfs libcomposite u_ether usb_f_ecm usb_f_ecm_subset usb_f_rndis g_ether rmmod: ERROR: could not remove 'configfs': Resource temporarily unavailable rmmod: ERROR: could not remove module configfs: Resource temporarily unavailable rmmod: ERROR: could not remove 'libcomposite': Resource temporarily unavailable rmmod: ERROR: could not remove module libcomposite: Resource temporarily unavailable rmmod: ERROR: could not remove 'u_ether': Resource temporarily unavailable rmmod: ERROR: could not remove module u_ether: Resource temporarily unavailable rmmod: ERROR: could not remove 'usb_f_ecm': No such file or directory rmmod: ERROR: could not remove module usb_f_ecm: No such file or directory rmmod: ERROR: could not remove 'usb_f_ecm_subset': No such file or directory rmmod: ERROR: could not remove module usb_f_ecm_subset: No such file or directory rmmod: ERROR: could not remove 'usb_f_rndis': Resource temporarily unavailable rmmod: ERROR: could not remove module usb_f_rndis: Resource temporarily unavailable rmmod: ERROR: could not remove 'g_ether': Resource busy rmmod: ERROR: could not remove module g_ether: Resource busy kobo:~#
10:56 PM
i already unloaded usbnet modules
10:56 PM
but those are still there
10:56 PM
im using wifi
Avatar
i really don't know
10:57 PM
lsmod?
Avatar
kobo:~# lsmod Module Size Used by 8189fs 1294344 0 sdio_wifi_pwr 593 0 g_ether 5247 -1 usb_f_rndis 16183 1 g_ether u_ether 12152 2 usb_f_rndis,g_ether libcomposite 44430 2 usb_f_rndis,g_ether configfs 23581 3 usb_f_rndis,libcomposite kobo:~#
10:58 PM
some modules i could unloaded, those persist
Avatar
kernel bug
Avatar
-f doesn't work
Avatar
if you want you can disable usbnet
10:58 PM
echo false > /boot/flags/USBNET_ENABLE
10:58 PM
and reboot
10:58 PM
it won't load the modules
Avatar
yea those were usbnet modules
11:04 PM
they dissapered
👍 1
Avatar
yestarday i leaved it at 97% after removing usbnet, it was sleeping till now and i see 90%
4:49 PM
its acceptable + usbnet is eating battery like crazy
Avatar
Good to know
4:50 PM
You don't have display debug flag enabled right?
Avatar
you mean?
Avatar
Look at wiki page
4:50 PM
Boot flags
4:51 PM
It prints serial output to screen rather than serial
Avatar
disabled
Avatar
Ok Because that eats a lot of battery
Avatar
but the kernel has the quiet option removed, maybe this
4:51 PM
the wiki doesn't load for me
Avatar
Which url?
Avatar
That's the new URL I changed some time ago I informed people in #chat
Avatar
https://photos.app.goo.gl/nuwvQYKwfA1hQ1TL8 Also, a video I made a while ago
Avatar
I want this boot animation (edited)
5:25 PM
does this consume energy all the time?
Avatar
Yes
5:26 PM
I don't know why
5:27 PM
It takes 100% of the CPU when it's supposed to be idle for some reason
5:27 PM
But it's useful for debugging
Avatar
should echo "1" > /sys/power/state-extended disable the touch screen?
Avatar
Avatar
Szybet
yestarday i leaved it at 97% after removing usbnet, it was sleeping till now and i see 90%
But today it didn't dropped even one percentage
8:34 AM
I think there is a bug somewhere
8:35 AM
How do i gather all stdout / stderr from services to a file?
Avatar
Maybe you can check /var/log/rc.log But I don't think it will be very helpful
Avatar
I will need to edit the service files :\ (edited)
Avatar
Avatar
Szybet
should echo "1" > /sys/power/state-extended disable the touch screen?
And this?
Avatar
That's to disable waking up the device with the touchscreen
1:29 PM
It only allows the power button/Hall sensor to wake it up
Avatar
Oh okay
Avatar
Now its confirmed When sleeping the touch screen is still on, and can awake the device
12:37 PM
Any fix for that? I think that /SYS/power/xxx should disable it
12:41 PM
I should create my own kernel
Avatar
You need to echo 1 to power-extended
Avatar
I think that the sleep service does that
1:20 PM
But its still is working
1:21 PM
The touch screen is very sensitive, even with a 1mm layer of PETG plastic
Avatar
I don't know
Avatar
Gutenberg hangs when Wi-Fi is off? On my devices it says Error as it should
1:48 PM
The reason I don't want to put a sync button is to limit the times/day one downloads the index from Gutenberg to prevent overloading the server
1:48 PM
The sync counter resets after one day
Avatar
It tryies to sync and hangs
Avatar
Maybe a button that only shows up after a day?
2:05 PM
I dont want accidentally sync the library
Avatar
Avatar
tux-linux
You need to echo 1 to power-extended
It didn't disabled the touch
12:33 PM
I did state-extended because power extended doesn't exist
Avatar
yeah sorry my mistake
1:46 PM
@NiLuJe , do you know what's going on here? (touch waking up the device even if state-extended is set to 1)
Avatar
I will check the kernel, maybe your config is missing something
Avatar
maybe
1:50 PM
I uploaded the GUI bundle
Avatar
Avatar
tux-linux
you technically can but load busybox binary into ram before (just run busybox) without any arguments then busybox sync busybox reboot (edited)
kobo:/bin# busybox sync -ash: busybox: not found
5:21 PM
nope
Avatar
Well idk
5:35 PM
Telnet into initrd
5:35 PM
Check INITRD_DEBUG boot flag
Avatar
yes i know
5:53 PM
why powerpc etc
5:56 PM
and what is this: CONFIG_ATAGS_PROC
Avatar
Well I didn't specifically enable these
Avatar
Avatar
Szybet
and what is this: CONFIG_ATAGS_PROC
Something for kexec to work (which I might do something with in the future)
Avatar
before: kobo:~# cat /sys/kernel/debug/suspend_stats success: 2 fail: 6 failed_freeze: 1 failed_prepare: 0 failed_suspend: 5 failed_suspend_late: 0 failed_suspend_noirq: 0 failed_resume: 0 failed_resume_early: 0 failed_resume_noirq: 0 failures: last_failed_dev: 228c000.epdc 228c000.epdc last_failed_errno: -2 -2 last_failed_step: suspend suspend those fails are becouse i tryied to do something, but still hmm
6:38 PM
what is 228c000.epdc
6:40 PM
i2c to control the regulator for screen brightness and fbink
6:40 PM
interesting?
Avatar
rebooted, now i get error -16 so "device and resource busy"
Avatar
even with success the touchscreen wakes it up
Avatar
i have disabled every wakeup file on the device: kobo:/sys# find . -name "wakeup" ./devices/platform/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-rtc-lp/power/wakeup ./devices/platform/soc/2000000.aips-bus/20c9000.usbphy/power/wakeup ./devices/platform/soc/2000000.aips-bus/2000000.spba-bus/2020000.serial/tty/ttymxc0/power/wakeup ./devices/platform/soc/2000000.aips-bus/20ca000.usbphy/power/wakeup ./devices/platform/soc/2100000.aips-bus/2184000.usb/power/wakeup ./devices/platform/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/power/wakeup ./devices/platform/soc/2100000.aips-bus/2194000.usdhc/power/wakeup ./devices/platform/soc/2100000.aips-bus/2190000.usdhc/power/wakeup ./devices/platform/soc/2100000.aips-bus/21ec000.serial/tty/ttymxc2/power/wakeup ./devices/platform/soc/2100000.aips-bus/21f8000.i2c/i2c-3/3-0032/rtc_ricoh619/power/wakeup ./devices/platform/soc/2100000.aips-bus/21f8000.i2c/i2c-3/3-0032/ricoh619-battery/power_supply/acpwr/power/wakeup ./devices/platform/soc/2100000.aips-bus/21f8000.i2c/i2c-3/3-0032/ricoh619-battery/power_supply/mc13892_charger/power/wakeup ./devices/platform/soc/2100000.aips-bus/21f8000.i2c/i2c-3/3-0032/ricoh619-battery/power_supply/mc13892_bat/power/wakeup ./devices/platform/soc/2100000.aips-bus/21f8000.i2c/i2c-3/3-0032/ricoh619-battery/power_supply/usbpwr/power/wakeup ./devices/platform/gpio-keys/power/wakeup its still waking up
Avatar
i have no idea, here is some documentation that isin't working: https://www.kernel.org/doc/html/v4.14/driver-api/pm/devices.html
Avatar
this is disabled:
8:35 PM
:(
Avatar
why i cant boot now any kernel
12:13 AM
here is nickel kernel: Starting kernel ... /cpus/cpu@0 missing clock-frequency property sy7636-pmic sy7636-pmic: request vcom gpio failed (-16)! sy7636-pmic sy7636-pmic: request powerup gpio failed (-16)! syscon-poweroff 20cc000.snvs:snvs-poweroff: pm_power_off already claimed 80021934 ntx_machine_poweroff PMU: ricoh61x_battery_probe : version is RICOH61x_BATTERY_VERSION: 2014.02.21 V3.1.0.0-Solution1 2015/02/09 ==== calc_soc_by_voltageMethod E60U22 ==== imx6ul-pinctrl 2290000.iomuxc-snvs: pin MX6ULL_PAD_SNVS_TAMPER3 already requested by 21f8000.i2c; cannot claim for gpio-keys imx6ul-pinctrl 2290000.iomuxc-snvs: pin-5 (gpio-keys) status -22 imx6ul-pinctrl 2290000.iomuxc-snvs: could not request pin 5 (MX6ULL_PAD_SNVS_TAMPER3) from group gpio_snvs_keys_grp on device 22900s gpio-keys gpio-keys: Error applying setting, reverse things back Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidanc. ---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt fo. imx_epdc_v2_fb 228c000.epdc: Cleared LUT complete for init update
Avatar
nickel image works god i was scared that i damaged the cpu
12:57 AM
now i have a important question
12:57 AM
what is /dev/sdcard in inkbox?
12:57 AM
@tux-linux
Avatar
no idea?
Avatar
Avatar
Szybet
why i cant boot now any kernel
sudo env GITDIR="${PWD}" scripts/make_devicenodes.sh
5:29 PM
this will solve your problem
Avatar
Well yeah?
Avatar
i will test it
Avatar
no, not really
12:12 AM
its the same
Avatar
Did you recompile?
Avatar
Boot log?
12:21 AM
this is the default config kernel
12:25 AM
something is compiling wrong in my opinion
Avatar
kernel build log:
221.64 KB
12:42 AM
u-boot is saying something interesting: or maybe not eBR-1A # boot switch to partitions #0, OK mmc0 is current device mmc read 0x80800000 0x14000 0x5000 MMC read: dev # 0, block # 81920, count 20480 ... 20480 blocks read: OK Booting from mmc ... mmc read 0x83000000 0x505 0x1 MMC read: dev # 0, block # 1285, count 1 ... 1 blocks read: OK dtb size = 41589@83000000 mmc read 0x83000000 0x506 0x57 MMC read: dev # 0, block # 1286, count 87 ... 87 blocks read: OK hwcfgp=8ffffe00,pcb=81,customer=9 ntx_gpio_get_value(404) : error parameter ! null ptr ! ESDin=0,UPGKey=-1,PWRKey=0,USBin=0x1,BootESD=0,MenuKey=0 mmc read 0x8ffffc00 0x37ff 0x1 MMC read: dev # 0, block # 14335, count 1 ... 1 blocks read: OK mmc read 0x8ff71a00 0x3800 0x472 MMC read: dev # 0, block # 14336, count 1138 ... 1138 blocks read: OK mmc read 0x8ff71800 0x405 0x1 MMC read: dev # 0, block # 1029, count 1 ... 1 blocks read: OK [WARNING] Binaries load sequence should Lo->Hi ! mmc read 0x8ff71400 0x406 0x3 MMC read: dev # 0, block # 1030, count 3 ... 3 blocks read: OK Kernel RAM visiable size=255M->255M ntx_gpio_init():R [ERROR] GPIO group number error (0)!! ntx_gpio_init():B [ERROR] GPIO group number error (0)!! hwcfg rootfstype : 2 hwcfg partition type : 2,bootmode=0 ntx_prebootm : cmd=setenv bootargs ${bootargs} hwcfg_p=0x8ffffe00 hwcfg_sz=110 waveform_p=0x8ff71a00 waveform_sz=582529 ntxfw_p=0x8t Kernel image @ 0x80800000 [ 0x000000 - 0x9b88d0 ] ## Flattened Device Tree blob at 83000000 Booting using the fdt blob at 0x83000000 Using Device Tree in place at 83000000, end 8300d274 Starting kernel ... (edited)
Avatar
i have no idea
Avatar
it cant go to the point of Linux inkbox 4.1.15 #1 SMP PREEMPT Sat Feb 19 21:21:19 CET 2022 armv7l GNU/Linux
1:11 AM
idk, any suggestions @tux-linux
Avatar
i have tryied removing some files from initrd/n306/opt/ becouse the previous problems were avoided in this way, but nothing
1:36 AM
and the kernel binary is still 9,8 Mb after all
1:36 AM
👀
Avatar
Can you try completely deleting the repo and cloning it again?
Avatar
Avatar
tux-linux
sudo env GITDIR="${PWD}" scripts/make_devicenodes.sh
Don't forget to do this again before you compile it
Avatar
Avatar
tux-linux
Can you try completely deleting the repo and cloning it again?
I did this already, and nothing
Avatar
ls initrd/n306/dev
Avatar
The 3 nodes are there, i checked it
Avatar
cat kernel/config/config-n306 | grep CMD (edited)
Avatar
Avatar
tux-linux
ls initrd/n306/dev
% ls -l initrd/n306/dev razem 0 crw-r--r-- 1 root root 5, 1 03-26 11:51 console crw-r--r-- 1 root root 1, 3 03-26 11:51 null crw-r--r-- 1 root root 207, 16 03-26 11:51 ttymxc
Avatar
Avatar
tux-linux
cat kernel/config/config-n306 | grep CMD (edited)
i recloned the repo... % cat kernel/config/config-n306| grep CMD # CONFIG_BLK_CMDLINE_PARSER is not set CONFIG_CMDLINE="console=ttymxc0,115200 rootwait rw no_console_suspend hwcfg_p=0x8ffffe00 hwcfg_sz=110 waveform_p=0x8ff71a00 waveform_sz=582529 ntxfw_p=0x8ff71400 ntxfw_sz=1034 mem=255M boot_port=1 rootfstype=ramfs root=/dev/ram0 rdinit=/sbin/init printk.time quiet" # CONFIG_CMDLINE_FROM_BOOTLOADER is not set # CONFIG_CMDLINE_EXTEND is not set CONFIG_CMDLINE_FORCE=y # CONFIG_BCMDHD is not set CONFIG_FB_CMDLINE=y 11:52 szybet@ArchSzybet /mnt/HDD/Project/Public/kobo-nia-audio/inkbox/kernel %
Avatar
Avatar
Szybet
% ls -l initrd/n306/dev razem 0 crw-r--r-- 1 root root 5, 1 03-26 11:51 console crw-r--r-- 1 root root 1, 3 03-26 11:51 null crw-r--r-- 1 root root 207, 16 03-26 11:51 ttymxc
There is ttymxc0, right?
11:53 AM
Not just ttymxc
Avatar
the command to compile: env GITDIR="${PWD}" TOOLCHAINDIR="${PWD}/toolchain/arm-nickel-linux-gnueabihf/" THREADS=$(($(nproc)*2)) TARGET=arm-nickel-linux-gnueabihf scripts/build_kernel.sh n306 root the command to write: sudo dd if=zImage-root of=/dev/sdd bs=512 seek=81920
Avatar
Avatar
tux-linux
There is ttymxc0, right?
yes
Avatar
Did you change the location of the initrd folder in the kernel config? Is /home/build/inkbox a working symlink?
Avatar
yes, otherwise it doesn't compile at all
Avatar
Avatar
tux-linux
Did you change the location of the initrd folder in the kernel config? Is /home/build/inkbox a working symlink?
initrd? where to change it?
11:57 AM
its in the kernel repo
Avatar
Avatar
Szybet
initrd? where to change it?
It's fine Since you have a symlink, it works
Avatar
the kernel size is always 9,8 M
Avatar
is the dd kernel command good?
12:22 PM
i first did dd if=inkbox_maybe_working.img of=kernel_inkbox_working count=10000000 skip=81920 iflag=skip_bytes,count_bytes to get the working kernel from a working inkbox image
12:23 PM
then sudo dd if=kernel_inkbox_working of=/dev/sdd bs=512 seek=81920
12:23 PM
but nothing
12:23 PM
no change
Avatar
Maybe you could compile the kernel... there is maybe something wrong with my linux on pc
Avatar
its 83000000 booting from but we are writing to 81920
Avatar
Why root at the end od the command and not std, it is like on your github
Avatar
83000000 is the memory address
2:35 PM
Yes, I can try
Avatar
Avatar
tux-linux
83000000 is the memory address
So?
Avatar
what the fuck is going on
3:14 PM
i compiled the kernel on my brothers laptop
3:15 PM
same device, same os but its a bit older and with less packages installed
3:15 PM
and the kernel booted
😂 1
3:15 PM
its time to use docker for kernel build
3:16 PM
Avatar
Avatar
Szybet
its time to use docker for kernel build
Maybe lxc could be better
3:50 PM
but still, i want my wasted time back
Avatar
How much time since you rebooted your laptop
Avatar
Avatar
Szybet
but still, i want my wasted time back
I had no way of knowing this
Avatar
Avatar
tux-linux
I had no way of knowing this
i know i know, its just computer problems
Avatar
Avatar
tux-linux
How much time since you rebooted your laptop
i have tryied yestarday, rebooted today, rebooted, and again (edited)
3:54 PM
so no, no reboot has to do with it
Avatar
I think I will start making the update packages/images for 1.9 now, unless there's something absolutely critical to solve?...
👍 1
Avatar
As for the sleep/touchscreen issues, I don't know what to do, even KOReader seems to do it all the time: https://github.com/koreader/koreader/blob/fb45576429b4302cd7dd7f09999206a5d60e9960/frontend/device/kobo/device.lua#L762-L775
Avatar
i think i can figure it out adding one kernel option with the touchscreen
Avatar
Avatar
Szybet
this is disabled:
this?
5:37 PM
then I echo disable > wakeup to the touchscreen device
Avatar
it works? (edited)
Avatar
Avatar
Szybet
Why root at the end od the command and not std, it is like on your github
Avatar
oh thats it
Avatar
Avatar
Szybet
oh thats it
what?
Avatar
std and root option
Avatar
oh ok
Avatar
Avatar
Szybet
i think i can figure it out adding one kernel option with the touchscreen
can you try it?
Avatar
i will, first i tinker with lxc to get the kernel to even boot
Avatar
hmm
5:55 PM
do you need a kernel? i can compile one, just give me the config file
Avatar
i will compile it on my own
👍 1
6:07 PM
lxc is horrible
Avatar
then maybe try a vm?
Avatar
documentation is for old commands, outdated
6:07 PM
forums too
6:07 PM
just npo
Avatar
i will add this to the guide later: install distrobox: https://github.com/89luca89/distrobox create a image: distrobox-create --image debian:latest distrobox-enter debian-latest install some packages: sudo apt update sudo apt upgrade sudo apt install bc git build-essential u-boot-tools libncurses5-dev libncursesw5-dev create the symlink: sudo mkdir -p /home/build/inkbox/ sudo ln -s path_to_kernel_repo /home/build/inkbox/kernel thats it, now cpp magic won't waste your time (edited)
Avatar
So it boots fine?
Avatar
now, yes
Avatar
Ok nice
Avatar
look: kobo:~# cat /sys/kernel/debug/wakeup_sources name active_count event_count wakeup_count expire_count active_since total_time max_time last_change prevent_suspend_time gpio-keys 0 0 0 0 0 0 0 5957 0 mc13892_charger 1 1 0 0 0 8 8 5701 0 usbpwr 1 1 0 0 0 7 7 5700 0 acpwr 1 1 0 0 0 5 5 5698 0 mc13892_bat 14 14 0 0 0 500 188 561099 0 20cc000.snvs:snvs-rtc-lp 0 0 0 0 0 0 0 5603 0 alarmtimer 0 0 0 0 0 0 0 4996 0 rtc_ricoh619 0 i disabled them all: kobo:~# cat /sys/kernel/debug/wakeup_sources name active_count event_count wakeup_count expire_count active_since total_time max_time last_change prevent_suspend_time alarmtimer 0 0 0 0 0 0 0 4996 but its still waking up
7:39 PM
well, this did nothing
Avatar
strange
7:40 PM
kobo kernels are, by definition, strange and unusual in all sorts of not-so-nice ways
7:40 PM
I don't know what to tell you
Avatar
there are some new files:
7:41 PM
kobo:~# ls /sys/power/ pm_async pm_print_times state wake_lock wakeup_count pm_freeze_timeout pm_test state-extended wake_unlock kobo:~# `
7:42 PM
but i cant find documentation for wake* files
7:45 PM
i checked on nickel, it does not happen
7:45 PM
wakeup becouse of touchscreen
Avatar
maybe it puts it to sleep automatically if it somehow detects that the wakeup source was the touchscreen?
7:46 PM
but that's soo dirty
Avatar
i think kobo developers are not dumb
Avatar
but, sometimes, they seem to be in a big hurry
7:48 PM
what manages sleep on nickel, i would want to know
Avatar
Is there a way to know which device has awaken the device?
Avatar
i don't know a lot about the wakeup system honestly
Avatar
maybe udev has something with it?
8:24 PM
and this, on a kobo ereader:
8:24 PM
nice
Avatar
where do you see that? (edited)
Avatar
nickel filesystem
8:26 PM
i have a image
Avatar
which file
Avatar
Avatar
Szybet
maybe udev has something with it?
probably
Avatar
Avatar
tux-linux
which file
a udev rule
👍 1
8:32 PM
is there a way to disable the touchscreen?... anything...
🤷‍♂️ 1
Avatar
GPIO's seem to be "written in hurry" too
8:44 PM
gpio_keys dont show up in ./bus/platform/devices/gpio-keys
Avatar
my last idea: unbind the touchscreen driver
8:54 PM
but which device is it ._ .
8:54 PM
ntx_event0 not
Avatar
have a look at the kernel source maybe? (edited)
Avatar
how do i know which files are actually used while building?
8:55 PM
if i could seperate them, then maybe
Avatar
lemme find a pcb picture
Avatar
????????????...
Avatar
to find the touchscreen microcontroller
Avatar
for the driver unbind? i think it will not help
Avatar
it will help to find the touchscreen driver name, probably
Avatar
Avatar
tux-linux
lemme find a pcb picture
do you have one?
Avatar
there are like 5 main chips on the device, and 3 small, one smaller than a diode
Avatar
Avatar
tux-linux
do you have one?
i have the kobo physically
8:58 PM
but yea, wait
👍 1
Avatar
Avatar
Szybet
there are like 5 main chips on the device, and 3 small, one smaller than a diode
only on one side*
8:58 PM
Kobo nia ereader with audio added. Contribute to Szybet/kobo-nia-audio development by creating an account on GitHub.
9:01 PM
Avatar
Avatar
Szybet
Click to see attachment 🖼️
okay discord, cool
9:01 PM
9:01 PM
cool...
9:02 PM
9:02 PM
now
9:02 PM
those are all IC on the device
9:03 PM
oh, and the big one on ribbon up right
Avatar
try to see if some controller name matches something in /sys/devices/platform, here's it's too small to read
9:31 PM
this won't help much
9:31 PM
but its pretty cool
9:31 PM
why is there a rainbow in those codes
9:32 PM
9:32 PM
here is a better one
Avatar
FOUND IT
9:44 PM
pure luck
9:44 PM
/sys/bus/i2c/drivers/elan-touch
9:45 PM
its /sys/devices/platform/soc/2100000.aips-bus/21a0000.i2c/i2c-0/0-0015
9:45 PM
kobo:/sys/bus/i2c/drivers/elan-touch# echo 0-0015 > unbind kobo:/sys/bus/i2c/drivers/elan-touch# echo 0-0015 > bind ash: write error: No such device this just cant be easy :C
9:46 PM
and the kernel panicked or smth
9:46 PM
Avatar
is the ereader still working? (edited)
Avatar
it rebooted and yes
10:12 PM
why do you ask :)?
Avatar
no, I wanted to know if the kernel 'panic' had an effect on the working system
10:13 PM
like, if it went by without issue or it required a reboot
Avatar
it forced a reboot
Avatar
hmm ok that is critical
Avatar
i see a file called delete_device in the i2c parrent, i think this is the proper way to remove a device kobo:/sys/devices/platform/soc/2100000.aips-bus/21a0000.i2c/i2c-0# ls 0-0015 0-0062 delete_device name of_node subsystem 0-0036 0-0068 i2c-dev new_device power uevent but how to use it
10:14 PM
where documentation
Avatar
what makes you think that there is documentation available ? ;p
Avatar
Avatar
Szybet
i see a file called delete_device in the i2c parrent, i think this is the proper way to remove a device kobo:/sys/devices/platform/soc/2100000.aips-bus/21a0000.i2c/i2c-0# ls 0-0015 0-0062 delete_device name of_node subsystem 0-0036 0-0068 i2c-dev new_device power uevent but how to use it
try it?
Avatar
its the linux kernel... its opensource... :(
Avatar
Avatar
tux-linux
try it?
invalid argument
Avatar
what did you write?
Avatar
0-0015 or elan-touch
10:15 PM
maybe the hex address of the device
10:15 PM
but i need to find it
Avatar
I am wondering what the proper way is to remove EEPROMs dynamically. An alternate approach that will also work is telling the device to re-do the probe. I tried just echoing it to delete_device, ...
Avatar
i was there already ;p
Avatar
maybe just 0x15 ?
Avatar
the first option doesn't work as you see
Avatar
Avatar
tux-linux
maybe just 0x15 ?
tryied it, nope
10:16 PM
but here is another error: kobo:/sys/devices/platform/soc/2100000.aips-bus/21a0000.i2c/i2c-0# echo 0x15 > delete_device ash: write error: No such file or directory
10:17 PM
hmm
10:17 PM
hm, good now what is the proper address
Avatar
look in the dts in the kernel source
10:19 PM
there you will probably find it
Avatar
and dts is?
Avatar
DeviceTree Source
10:21 PM
what's the identifier written on the PCB?
10:21 PM
ok got it
Avatar
is it imporant?
Avatar
do you have ddr3 ram?
Avatar
ok so take arch/arm/boot/dts/imx6ull-ntx.dtsi
Avatar
thats a cool file
Avatar
but it seems it isn't referenced maybe arch/arm/boot/dts/imx6ull-ntx-ddr3.dts (edited)
10:25 PM
though it still seems to be 0x15
10:26 PM
maybe removing them is disabled? lets look to kernel config
10:28 PM
here is nothing
10:28 PM
Avatar
Avatar
tux-linux
though it still seems to be 0x15
wait... what are those gpio's there?
10:28 PM
i2c pins?
Avatar
Maybe
10:34 PM
Be careful with that, sometimes you can physically damage the device if you do the wrong thing
Avatar
yes but actually yes and no... most important if the regulators have good maximum voltages assing (edited)
10:42 PM
10:42 PM
HMMMMM
10:43 PM
modules
10:43 PM
10:44 PM
well, first you need to give instructions how to create modules.sqash
10:44 PM
just modules_install and then the whole directory into squash?
Avatar
No, why?
Avatar
Avatar
Szybet
Click to see attachment 🖼️
That will probably conflict with the current driver
Avatar
i knwo, but still its something
Avatar
Avatar
Szybet
Click to see attachment 🖼️
at default this is built in
10:49 PM
i want to module it
10:49 PM
so how do i make modules.squash
Avatar
Before, just try to insmod it without putting it into modules.sqsh
Avatar
um, so MODULES_INSTALL, copy the files to device?
Avatar
Yeah
11:14 PM
SCP, etc
Avatar
well, tommorow
👍 1
Avatar
Avatar
Szybet
FOUND IT
Can you see if it panics again now, or was it just a coincidence?
Avatar
it panics multiple times
Avatar
actually, if i try to access the file system then it panicks
Avatar
Hopefully you'll find something that will make it work
Avatar
Avatar
Szybet
actually, if i try to access the file system then it panicks
Well, doesn't really help here lol
Avatar
ls: can't open '/': Connection aborted
👍 1
11:17 PM
and after this there is the kernel panik
Avatar
something something wakeup pins in the dts maybe?
1:16 AM
No experience with the elan driver, I think it's the one found on the Sage & Elipsa, though, and I'm pretty sure it's PM'ed properly on stock images there.
👍 1
Avatar
Building modules, stage 2. MODPOST 28 modules ERROR: "gSleep_Mode_Suspend" [drivers/input/touchscreen/elan_touch_i2c.ko] undefined! ERROR: "gIsCustomerUi" [drivers/input/touchscreen/elan_touch_i2c.ko] undefined! ERROR: "gptHWCFG" [drivers/input/touchscreen/elan_touch_i2c.ko] undefined! make[1]: *** [scripts/Makefile.modpost:90: __modpost] Error 1 make: *** [Makefile:1103: modules] Error 2 [szybet@debian-latest linux-4.1.15-n306]$
11:37 AM
:/
11:41 AM
this file does not exist at all
Avatar
#include "../../../arch/arm/mach-imx/ntx_hwconfig.h" extern volatile NTX_HWCONFIG *gptHWCFG; weird
11:55 AM
this can be resolved, but i dont know cpp to good for this
11:55 AM
this is pure c maybe
11:58 AM
so 3 problems: 3 variables are undefined in kernel/kernel/linux-4.1.15-n306/drivers/input/touchscreen/elan_touch_i2c.c: line 768: extern int gSleep_Mode_Suspend; line 50 extern int gIsCustomerUi; line 27 ( this one is the weirdiest ) #include "../../../arch/arm/mach-imx/ntx_hwconfig.h" extern volatile NTX_HWCONFIG *gptHWCFG;
Avatar
here is the full file
Avatar
disabling the touchscreen would be easy with udev... https://ask.fedoraproject.org/t/disabling-device-with-udev/1975
Avatar
Avatar
Szybet
disabling the touchscreen would be easy with udev... https://ask.fedoraproject.org/t/disabling-device-with-udev/1975
Try, udev is supposedly there in the rootfs
Avatar
yes, and it doesn't work
Avatar
What specifically?
Avatar
udevadm test --action="remove" /devices/platform/ntx_event0/input/input
2:11 PM
well, udev isin't mean't for this
2:12 PM
we need to try with the modules
2:12 PM
or
2:12 PM
in the files elan* are many thing related to wakeup, i dont really understand them
Avatar
Neither do I And neither do I have an idea about what in the world is happening with undefined variables. NTX/Kobo kernel code is a mess.
2:15 PM
Maybe you can try with gpio pins?
Avatar
you mean?
2:15 PM
the touch screen is i2c
Avatar
interesting bug [ 250.760770] Freezing of tasks failed after 20.008 seconds (1 tasks refusing to freeze, wq_busy=0): [ 250.769848] udevd D 8056fa00 0 814 1 0x00000001 [ 250.769897] [<8056fa00>] (__schedule) from [<8056fd8c>] (schedule+0x40/0x98) [ 250.769917] [<8056fd8c>] (schedule) from [<801bcfdc>] (__fuse_request_send+0x13c/0x2c8) [ 250.769938] [<801bcfdc>] (__fuse_request_send) from [<801bfe08>] (fuse_simple_request+0xc8/0x1dc) [ 250.769958] [<801bfe08>] (fuse_simple_request) from [<801c2208>] (fuse_lookup_name+0xb8/0x16c) [ 250.769975] [<801c2208>] (fuse_lookup_name) from [<801c22f4>] (fuse_lookup+0x38/0xdc) [ 250.769995] [<801c22f4>] (fuse_lookup) from [<800ef928>] (lookup_real+0x20/0x4c) [ 250.770015] [<800ef928>] (lookup_real) from [<800f082c>] (__lookup_hash+0x34/0x3c) [ 250.770033] [<800f082c>] (__lookup_hash) from [<800f086c>] (lookup_slow+0x38/0xa4) [ 250.770050] [<800f086c>] (lookup_slow) from [<800f42e0>] (path_lookupat+0x5b8/0x704) [ 250.770066] [<800f42e0>] (path_lookupat) from [<800f4448>] (filename_lookup+0x1c/0x64) [ 250.770080] [<800f4448>] (filename_lookup) from [<800f5840>] (user_path_at_empty+0x54/0x7c) [ 250.770096] [<800f5840>] (user_path_at_empty) from [<800f587c>] (user_path_at+0x14/0x1c) [ 250.770112] [<800f587c>] (user_path_at) from [<800ebb08>] (vfs_fstatat+0x44/0x98) [ 250.770131] [<800ebb08>] (vfs_fstatat) from [<800ec1e0>] (SyS_stat64+0x14/0x30) [ 250.770151] [<800ec1e0>] (SyS_stat64) from [<8000f440>] (ret_fast_syscall+0x0/0x3c) [ 250.770181] [ 250.770190] Restarting tasks ... done. and: kobo:~# [ 250.760770] Freezing of tasks failed after 20.008 seconds (1 tasks refusing to freeze, wq_busy=0):
3:23 PM
I did this
3:23 PM
i dont know how
3:24 PM
._ .
3:25 PM
it works
3:25 PM
bruhhhhh
3:25 PM
i will make a pull request later
Avatar
What did you do??
Avatar
Random // in elan drivers where wake enabled was
6:52 PM
I got to this becouse od proc interrupts and in the irq in files
Avatar
lool
Avatar
make a pull request when you can
Avatar
maybe not today, tommorow
Avatar
Can you pull the kernel repo and see if the kernel still boots with the new 203K binary (qr-to-png) I added?
Avatar
tommorow propably
Avatar
if i compile it for you?
Avatar
also the kernel size... max is 10,5M currently its 9,8M, and i want to add alsa and soundcard support
8:51 PM
this doesn't look good for the future
Avatar
Avatar
tux-linux
if i compile it for you?
then propably today
Avatar
Avatar
Szybet
this doesn't look good for the future
0.7M is probably already too small
8:52 PM
Maybe you can put them in a [p1]/modules folder, I don't know
Avatar
what is next to the kernel?
Avatar
partition 3 iirc
Avatar
waveform?
Avatar
Avatar
tux-linux
partition 3 iirc
not good
Avatar
yeah, well, when I set up a partition layout I didn't think the kernels would become so huge
Avatar
Avatar
Szybet
then propably today
compiling right now
Avatar
there are 2 options: 1 we make the partition layout in a other way now 2 in the future we will do this anyway, e-readers are becoming more complicated and have more features. Even never kernels are bigger
Avatar
the thing is that I don't want to re-upload a system image for existing supported models
Avatar
now not many people use inkbox, it will not hurt many. in the future it will
Avatar
i guess 10.5M is also really huge for a kernel on an embedded device
8:56 PM
when you think about it, it eats 10M of your RAM
8:57 PM
so it is probably not a good idea to keep it growing
8:57 PM
we'll have to find other ways to do what we want to do
Avatar
modules etc on a partition
Avatar
the thing is that each device has different modules
8:58 PM
painful to update
8:58 PM
but maybe
Avatar
just update with the rootfs
8:58 PM
+ this can be done with a script
Avatar
i'll see
Avatar
did you get any success?
Avatar
it boots
Avatar
ok, nice
9:20 PM
thanks
Avatar
is this normal that when going to sleep, when the 10-20s process is going if i click the touchscreen it cancels the sleeping? (edited)
12:23 AM
But maybe it is good
Avatar
I updated the GUI bundle with latest features, including 2048 and QReversi games http://23.163.0.39/bundles/private/update-n306.isa
6:33 AM
I modified 2048, now it is more optimized for eReaders https://github.com/Kobo-InkBox/2048
6:34 AM
Avatar
Avatar
tux-linux
But maybe it is good
In what way
Avatar
i don't know (edited)
Avatar
Avatar
tux-linux
I updated the GUI bundle with latest features, including 2048 and QReversi games http://23.163.0.39/bundles/private/update-n306.isa
I will test it today
👍 1
Avatar
Avatar
tux-linux
i don't know (edited)
Then not good :p
Avatar
well, you fix it, i've had enough nightmares with sleep issues (yeah, get it? o_O) ;p (edited)
😆 2
Avatar
Avatar
tux-linux
I modified 2048, now it is more optimized for eReaders https://github.com/Kobo-InkBox/2048
and I must have played at least half an hour total on it since it is implemented this game is really addictive lol
Avatar
Avatar
tux-linux
well, you fix it, i've had enough nightmares with sleep issues (yeah, get it? o_O) ;p (edited)
I will redesign it completly
Avatar
Avatar
tux-linux
and I must have played at least half an hour total on it since it is implemented this game is really addictive lol
yes, it definitely is lol
Avatar
./wake_standby.sh: line 14: echo: write error: Operation not permitted [FBInk] Couldn't find a Kobo version tag (onboard unmounted or not running on a Kobo?)! [FBInk] Detected a Kobo Nia (382 => Luna @ Mark 7) [FBInk] Enabled Kobo Mark 7 quirks [FBInk] Clock tick frequency appears to be 100 Hz [FBInk] Screen density set to 212 dpi [FBInk] Variable fb info: 758x1024, 16bpp @ rotation: 3 (Counter Clockwise, 270°) [FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 3145728 bytes & line length: 1536 bytes [FBInk] Canonical rotation: 0 (Upright, 0°) [FBInk] Fontsize set to 16x16 (IBM base glyph size: 8x8) [FBInk] Line length: 47 cols, Page size: 64 rows [FBInk] Pen colors set to #000000 for the foreground and #FFFFFF for the background [FBInk] Couldn't find a Kobo version tag (onboard unmounted or not running on a Kobo?)! [FBInk] Detected a Kobo Nia (382 => Luna @ Mark 7) [FBInk] Enabled Kobo Mark 7 quirks [FBInk] Clock tick frequency appears to be 100 Hz [FBInk] Screen density set to 212 dpi [FBInk] Variable fb info: 758x1024, 16bpp @ rotation: 3 (Counter Clockwise, 270°) [FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 3145728 bytes & line length: 1536 bytes [FBInk] Canonical rotation: 0 (Upright, 0°) [FBInk] Fontsize set to 16x16 (IBM base glyph size: 8x8) [FBInk] Line length: 47 cols, Page size: 64 rows [FBInk] Pen colors set to #000000 for the foreground and #FFFFFF for the background Displaying image '/tmp/dump.png' @ column 0 + 0px, row 0 + 0px (scaling: 0x0, H align: 0, V align: 0, inverted: N, flattened: N, waveform: AUTO, HW dithering: PASSTHROUGH, SW dithered: N, nightmode: N, skip refresh: N) and at line 14: echo "mem" > /sys/power/state
9:05 PM
Interesting
9:07 PM
propably the FBINK is related to the script later
9:07 PM
but still
Avatar
[ 2341.748944] Freezing user space processes ... (elapsed 0.001 seconds) done. [ 2341.750868] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 2341.752192] PM: Entering mem sleep [ 2341.755135] [evdev_check_event-1232] event1 head D4, tail 3A [ 2341.755169] dpm_run_callback(): input_dev_suspend+0x0/0xac returns -1 [ 2341.761767] PM: Device input1 failed to suspend: error -1 [ 2341.767180] PM: Some devices failed to suspend, or early wake event detected [ 2341.847891] PM: resume of devices complete after 73.565 msecs [ 2341.849635] PM: resume devices took 0.080 seconds [ 2341.849653] PM: Finishing wakeup
9:17 PM
this touch device...
Avatar
On other devices it seems to be the framebuffer
Avatar
here its only the touch
10:30 PM
well, i can get the error message and if it appears it will try one more time to go to sleep
10:31 PM
how do i add services to launch at boot, and commit it? where is the openrc config fle located
Avatar
/etc/runlevels/default
10:40 PM
Symlink your service there
10:40 PM
i will redesign the sleep thing
Avatar
I discovered other issues with the reader; it seems that it still doesn't work when I open a PDF then an ePUB
Avatar
Avatar
Szybet
i will redesign the sleep thing
Good luck
Avatar
Avatar
tux-linux
I discovered other issues with the reader; it seems that it still doesn't work when I open a PDF then an ePUB
i said that before
10:41 PM
i had issues with epubs only but yes
Avatar
Yeah, and I fixed it
10:41 PM
Strange
Avatar
Avatar
tux-linux
I discovered other issues with the reader; it seems that it still doesn't work when I open a PDF then an ePUB
Also I have strange scaling in PDFs when I click on next page button Will try to investigate this tonight
Avatar
Avatar
tux-linux
Yeah, and I fixed it
Right?
Avatar
Avatar
tux-linux
Also I have strange scaling in PDFs when I click on next page button Will try to investigate this tonight
i had scalling issues in epubs too. no images, not enough text and the "end of document" toast appeared after every page change. i think it happened in the newest gui bundle
Avatar
Avatar
tux-linux
Right?
yes, but im saying now about another bug
Avatar
Avatar
Szybet
i had scalling issues in epubs too. no images, not enough text and the "end of document" toast appeared after every page change. i think it happened in the newest gui bundle
Uh, not the end of document thing. I read on InkBox today and ePUB is fine
10:47 PM
Not enough text, you can change ePUB page size in Settings
Avatar
Avatar
tux-linux
Not enough text, you can change ePUB page size in Settings
i tryied, nothing
Avatar
And images are simply not supported, sorry. It's a limitation of the viewing engine
Avatar
Avatar
Szybet
i tryied, nothing
Really?
Avatar
For me it works
Avatar
Avatar
tux-linux
And images are simply not supported, sorry. It's a limitation of the viewing engine
??? mudpdf is used in koreader and plato and i think its working there
Avatar
It's not used in the same way
10:51 PM
The GUI uses qtextedit
10:51 PM
It displays a generated html by mupdf
Avatar
qtextedit image another qtextedit
10:52 PM
this could be done?
10:53 PM
i think mupdf gives a reference to the image
10:53 PM
if its html, maybe just use qtbrowser or something like that?
Avatar
No, qtwebengine doesn't work on kobos
10:54 PM
Also even if it did it would consume way too much battery
Avatar
Avatar
Szybet
qtextedit image another qtextedit
then this?
Avatar
Avatar
Szybet
this could be done?
Maybe
Avatar
i will use something like this in sanki
👍 1
Avatar
can i use fbink command to write many times one thing? will it damage the e-ink?
11:06 PM
also about e-inks. do magnets have a effect on them?
11:07 PM
11:07 PM
what does this line do
11:08 PM
chroot /kobo /usr/bin/fbgrab "/external_root/tmp/dump.png" this command does nothing?...
Avatar
Takes a screenshot
Avatar
Avatar
Szybet
Click to see attachment 🖼️
Empties file
Avatar
Avatar
Szybet
can i use fbink command to write many times one thing? will it damage the e-ink?
I haven't seen damage, but apparently it is possible
Avatar
Avatar
Szybet
also about e-inks. do magnets have a effect on them?
From what I've read, strong ones do have some effect
Avatar
Avatar
tux-linux
Takes a screenshot
this makes sense
Avatar
Avatar
tux-linux
From what I've read, strong ones do have some effect
how strong ones?
11:33 PM
i want to make a modular etui
Avatar
Avatar
Szybet
how strong ones?
Don't know The magnet in cases is ok enough for sure
Avatar
/opt/bin/fbink/fbink -k -f -q /opt/bin/fbink/fbink -t regular=/etc/init.d/splash.d/fonts/resources/inter-b.ttf,size=20 "Sleeping" -m -M -q can i put this just before going to sleep?
Avatar
Please use this script syntax: "${VAR}" for var expansion (double quote unless you know it will be an int) "$(command)" for invoking command in a var
Avatar
Avatar
Szybet
/opt/bin/fbink/fbink -k -f -q /opt/bin/fbink/fbink -t regular=/etc/init.d/splash.d/fonts/resources/inter-b.ttf,size=20 "Sleeping" -m -M -q can i put this just before going to sleep?
I think? But not after sleep 10
Avatar
Avatar
tux-linux
Please use this script syntax: "${VAR}" for var expansion (double quote unless you know it will be an int) "$(command)" for invoking command in a var
sure
👍 1
Avatar
https://github.com/Kobo-InkBox/rootfs/blob/master/etc/init.d/update.sh This is a good example of the syntax I want Everything is there, except some places when I forgot to double quote
InkBox OS root filesystem. Contribute to Kobo-InkBox/rootfs development by creating an account on GitHub.
11:40 PM
11:41 PM
where does this else happen?
Avatar
Yes it is needed
11:41 PM
When there is an event in event0 but it is not the power button or sleep cover
11:41 PM
Sometimes it can be the gyroscope for example
Avatar
Avatar
tux-linux
Yes it is needed
Otherwise you will get a memory leak at some point
Avatar
but after detecting something it will continue to run the code after it?
Avatar
It continues/restarts the while loop (edited)
11:42 PM
You know what inotifywait does, right?
Avatar
Wait for a particular event on a file or set of files.
Avatar
Yes So it waits for an input event then executes the code
Avatar
so only for KEY_POWER and F1, okay
Avatar
Yes
Avatar
can i write to /tmp/ some data, sync and sleep 2 and then mem > state?
Avatar
well, one thing and i think it will be perfect
2:25 AM
how do i specify fbink -q -p -m -y 30 -S 3 -B WHITE -t regular=/etc/init.d/splash.d/fonts/resources/inter-b.ttf,size=10 "don't touch the screen" the place where to spawn the text using those fonts? i tryied with size=10,bottom=10 etc but nothing worked
2:27 AM
ugh, brightness doesn't work
2:30 AM
well, tommorow
2:31 AM
but its now reacting instant for the power button
2:31 AM
😄
Avatar
Avatar
Szybet
how do i specify fbink -q -p -m -y 30 -S 3 -B WHITE -t regular=/etc/init.d/splash.d/fonts/resources/inter-b.ttf,size=10 "don't touch the screen" the place where to spawn the text using those fonts? i tryied with size=10,bottom=10 etc but nothing worked
do we really not have another solution?
3:58 AM
also it only happens on your device
Avatar
Avatar
Szybet
can i write to /tmp/ some data, sync and sleep 2 and then mem > state?
i guess?
Avatar
If you're curious about the recoveryfs, here's the main scripts directory: https://github.com/Kobo-InkBox/recoveryfs/tree/master/opt/recovery/scripts
6:09 AM
The restore-*.sh ones are probably the most interesting
6:11 AM
btw, here's how it looks on the screen: https://youtu.be/KaBj7acHRHk?t=2129 (starts at 35:29)
Avatar
Avatar
Szybet
but its now reacting instant for the power button
good, but will it work on other devices? 😉 (edited)
Avatar
Avatar
tux-linux
also it only happens on your device
And its working only on my device, there is a IF n306
👍 1
Avatar
Avatar
tux-linux
do we really not have another solution?
I prefer this that way
Avatar
Avatar
tux-linux
good, but will it work on other devices? 😉 (edited)
Why not
Avatar
Well, on other devices the FB might cause problems while it works on the Nia
Avatar
the error message is only for the nia (edited)
👍 1
Avatar
Avatar
Szybet
I prefer this that way
Ok, please, at least, write it correctly with a capital in the beginning of the sentence
1:59 PM
I'm curious; does Wi-Fi reconnection work when waking from sleep on your device with what you implemented?
Avatar
Avatar
tux-linux
I'm curious; does Wi-Fi reconnection work when waking from sleep on your device with what you implemented?
for now no, but i only need to add one if in the code
2:08 PM
i have anoother issue
Avatar
Ok
Avatar
Avatar
Szybet
i have anoother issue
Yes?
Avatar
the device blocks going to sleep no matter what, only reboot helps
Avatar
You can't wake up?
Avatar
i cant suspend it
Avatar
It happens everytime?
Avatar
only if i test it heavily
2:18 PM
i think
Avatar
What's your code?
Avatar
#!/bin/bash # /tmp/sleep_error stores errors when going to sleep. For kobo nia, if missing permission error will show up it will try again DEVICE=$(cat /opt/inkbox_device) # Race condition; going to sleep echo "false" > /tmp/sleep_standby # Idk if its needed /opt/bin/fbink/fbink -k -f -q /opt/bin/fbink/fbink -t regular=/etc/init.d/splash.d/fonts/resources/inter-b.ttf,size=20 "Sleeping" -m -M -q echo "sleeping" > /tmp/sleep_status go_sleep() { echo "read file" cat /tmp/sleep_error rm -f /tmp/sleep_error 2>/dev/null sleep 8 sync echo "going to sleep" echo "1" > /sys/power/state-extended sync sleep 2 echo "mem" > /sys/power/state 2>/tmp/sleep_error sleep 2 } go_sleep if [ "${DEVICE}" == "n306" ]; then # Separate if to avoid writing many times to the e-ink. idk about the syntax / look of the code here if grep -q "Operation not permitted" /tmp/sleep_error; then ### TO DO get the good position of it /opt/bin/fbink/fbink -m -q -B WHITE -t regular=/etc/init.d/splash.d/fonts/resources/inter-b.ttf,size=18,top=800,bottom=0,left=0,right=0 "don't touch the screen" /opt/bin/fbink/fbink -m -q -B WHITE -t regular=/etc/init.d/splash.d/fonts/resources/inter-b.ttf,size=14,top=870,bottom=0,left=0,right=0 "Nia can't go to sleep if it's touched" fi while grep -q "Operation not permitted" /tmp/sleep_error; do go_sleep done fi /etc/init.d/suspend_scripts/after_sleep.sh
2:28 PM
the part with while is not working
2:29 PM
if it gets there, it will not suspend, just loop through and there will be x fails in suspend_stats
2:29 PM
and things in go_sleep like echo and cat are my debugging things
Avatar
Maybe you can just store the status of echo command in a var ${?}
Avatar
will this help with the problem?
Avatar
No
2:34 PM
But it will make more sense probably
Avatar
okay, i will implement it after it will work
Avatar
When you write to sysfs you don't need to sync Files there are not real files, they are linked directly to the kernel
Avatar
sync is for the filesystem
Avatar
Yeah, put it only once
Avatar
Hmm I would add something blocking that would prevent executing go_sleep if it's already running But maybe the while loop already prevents that
Avatar
there is no &, so its only running once
Avatar
You can use sh -x to help you debug
2:39 PM
It's really useful
Avatar
what it does?
Avatar
Try it
2:40 PM
sh -x script.sh
2:41 PM
Well, maybe more bash -x Btw, if possible, always use /bin/sh as it is faster than bash If you need arrays, etc. it's okay but ideally the faster it runs the better
Avatar
Avatar
tux-linux
Well, maybe more bash -x Btw, if possible, always use /bin/sh as it is faster than bash If you need arrays, etc. it's okay but ideally the faster it runs the better
thats helpfull
Avatar
this is weird
2:47 PM
the script if it goes to this loop, it cant suspend itself (edited)
2:47 PM
but then i relaunch the whole script, it suspends normal (edited)
Avatar
I don't understand
Avatar
maybe now
2:52 PM
what does /tmp/sleep_mode?
Avatar
Tells other scripts/services that it's going/in sleep mode IIRC It is necessary
Avatar
and /tmp/sleep_standby?
Avatar
Used for WiFi reconnection
Avatar
WEIRD
3:28 PM
nothing makes sense
3:28 PM
i needed to add: kill -CONT $(pidof inkbox-bin 2>/dev/null) 2>/dev/null kill -CONT $(pidof oobe-inkbox-bin 2>/dev/null) 2>/dev/null kill -CONT $(pidof calculator-bin 2>/dev/null) 2>/dev/null kill -CONT $(pidof scribble 2>/dev/null) 2>/dev/null kill -CONT $(pidof lightmaps 2>/dev/null) 2>/dev/null kill -CONT $(pidof qreversi-bin 2>/dev/null) 2>/dev/null kill -CONT $(pidof 2048-bin 2>/dev/null) 2>/dev/null sleep 2 kill -STOP $(pidof inkbox-bin 2>/dev/null) 2>/dev/null kill -STOP $(pidof oobe-inkbox-bin 2>/dev/null) 2>/dev/null kill -9 $(pidof lockscreen-bin 2>/dev/null) 2>/dev/null kill -STOP $(pidof calculator-bin 2>/dev/null) 2>/dev/null kill -STOP $(pidof scribble 2>/dev/null) 2>/dev/null kill -STOP $(pidof lightmaps 2>/dev/null) 2>/dev/null kill -STOP $(pidof qreversi-bin 2>/dev/null) 2>/dev/null kill -STOP $(pidof 2048-bin 2>/dev/null) 2>/dev/null to make it go to sleep after the error with touch
3:28 PM
why?
Avatar
Wait, where's the sleep call in this code?
Avatar
where?
Avatar
Avatar
Szybet
i needed to add: kill -CONT $(pidof inkbox-bin 2>/dev/null) 2>/dev/null kill -CONT $(pidof oobe-inkbox-bin 2>/dev/null) 2>/dev/null kill -CONT $(pidof calculator-bin 2>/dev/null) 2>/dev/null kill -CONT $(pidof scribble 2>/dev/null) 2>/dev/null kill -CONT $(pidof lightmaps 2>/dev/null) 2>/dev/null kill -CONT $(pidof qreversi-bin 2>/dev/null) 2>/dev/null kill -CONT $(pidof 2048-bin 2>/dev/null) 2>/dev/null sleep 2 kill -STOP $(pidof inkbox-bin 2>/dev/null) 2>/dev/null kill -STOP $(pidof oobe-inkbox-bin 2>/dev/null) 2>/dev/null kill -9 $(pidof lockscreen-bin 2>/dev/null) 2>/dev/null kill -STOP $(pidof calculator-bin 2>/dev/null) 2>/dev/null kill -STOP $(pidof scribble 2>/dev/null) 2>/dev/null kill -STOP $(pidof lightmaps 2>/dev/null) 2>/dev/null kill -STOP $(pidof qreversi-bin 2>/dev/null) 2>/dev/null kill -STOP $(pidof 2048-bin 2>/dev/null) 2>/dev/null to make it go to sleep after the error with touch
i added this to while and now it goes to sleep, and does not loop itself
Avatar
Well it makes no sense
Avatar
but it works
3:44 PM
👀
3:44 PM
maybe some of those app tryied were awaken when the error accoured, and then tryied to get input from touch?
Avatar
Without kill cont and only with kill stop, does it work?
3:49 PM
😆
Avatar
do you have the full script?
Avatar
nothing makes sens now
Avatar
nothing in the kobo world ever makes sense, period.
Avatar
i have. i will test some more things and then send it to you (edited)
Avatar
can i see it now?
Avatar
what part exactly?
Avatar
the entire script
Avatar
they are like 5 of them
Avatar
well, those 5 then
3:50 PM
i want to understand why the kill thing works
3:53 PM
i havent tested everything yet
3:53 PM
how do i clear half of the e-ink?
Avatar
why?
Avatar
Avatar
Szybet
how do i clear half of the e-ink?
why?
Avatar
becouse the wifi mark appears sometimes when launching the kill thing
Avatar
look into fbink docs refresh rectangle or something
3:55 PM
fbink without arguments will print the full help
Avatar
Avatar
Szybet
Click to see attachment 🖼️
I am not sure I am ready to merge this It will need a LOT of testing, and it seems it affects other devices too It will be something to test for 2.0 release
Avatar
it needs testing, sure
Avatar
can't you put touch_issue_fix.sh into a function?
Avatar
this will load it to ram, the code will be rarely used, the code in this file will be uglier
Avatar
why uglier?
4:05 PM
and it will load the file to ram anyway
Avatar
Avatar
tux-linux
and it will load the file to ram anyway
really?
Avatar
Avatar
tux-linux
why uglier?
20 lines of kill
Avatar
and? (edited)
Avatar
well okay
Avatar
Avatar
Szybet
this will load it to ram, the code will be rarely used, the code in this file will be uglier
it will load <1K to RAM, so I guess it is negligible
Avatar
oh, and idle sleep is broken
4:12 PM
i think
4:14 PM
why is the wifi logo even refreshing when the state didn't changed
Avatar
i know it's set to refresh every 10 s
Avatar
why ;_;
4:16 PM
can you change it?
4:16 PM
its better that if i did in my script the rectangle thing
Avatar
i will try
4:18 PM
thanks
👍 1
Avatar
Otherwise, the screen would flash everytime, regardless of the setting set by the user. I'm keeping the code there in case I or someone else find a fix.
4:21 PM
i tried everything but it didn't want to work
Avatar
disabling buttons refreshes the screen?
Avatar
yes
Avatar
wtf qt
Avatar
i know
Avatar
i will add this rectangle anyway
4:24 PM
becouse battery / time has the same problem, and they change anyways
👍 1
Avatar
done
Avatar
nice
👍 1
Avatar
wifi recconection works
Avatar
good
Avatar
maybe dont disable the button, but give an if at the slot that its executing when clicked?
Avatar
already tried
Avatar
But the function is blocking, so it always finishes executing before launching a new one, and it remembers at the same time how many times you clicked on the button. It's like a queue So it never worked
Avatar
??? it can execute to the end, but you simply disable the code in it
4:58 PM
i dont understand something propably
Avatar
it's very complicated
4:58 PM
i'm not sure I can even explain it
Avatar
idle sleep works too
5:05 PM
everything works
5:09 PM
5:09 PM
here is everything
Avatar
ok; i don't really have the energy to test this right now but i'll consider it for 2.0 release thanks!
Avatar
i will use it for me
👍 1
Avatar
I updated the GUI bundle Scrollbars should be better You'll also need to update the rootfs (edited)
Avatar
Okay,i will test it today
6:44 AM
Im taking tommorow the nia for a trip and i hope it will be usable, it will not break himself 😆
👍 1
Avatar
Avatar
tux-linux
The GUI uses qtextedit
I think this is a very simple question, but when I copy an image I can't paste it in a QTextEdit? Paste is inactive! Also I would like to know how to drag-and-drop a picture. BTW I use the following
6:28 PM
umm?
Avatar
You can??
6:32 PM
Ok, didn't know that The class name is misleading
Avatar
idk, but here i see its possible
6:32 PM
i will use it in sanki for sure
👍 1
Avatar
Does the boot progress bar work correctly on your device?
Avatar
um yes?
👍 1
Avatar
Also, are X11 apps launching/working fine?
Avatar
Avatar
Szybet
um yes?
Good, just wanted to check
Avatar
Avatar
tux-linux
Also, are X11 apps launching/working fine?
yes, but fbink gets errors after some time when x11 is enabled
Avatar
Yeah sure
10:24 PM
That I can't do anything about
10:24 PM
A Qt terminal would be nice
Avatar
Though we'd have to figure out how to get out of the GUI chroot
10:25 PM
Maybe telnet, but that is not a really good idea
10:26 PM
Because the GUI doesn't have a bundled SSH client
Avatar
hmm... there must be a way to escape chroot
Avatar
Yes there is But it does not make a very good impression if it's official hehe
10:30 PM
I think I have an idea
10:36 PM
Throw a dropbear static binary into /kobo/external_root/, SSH to localhost (main rootfs) with it, and bingo (edited)
Avatar
this makes sense
10:37 PM
here is the whole new sleep management, i forgot to include one file
👍 1
Avatar
Seems that my Glo HD too wakes on touchscreen
Avatar
well, the fix would now be easy
10:47 PM
i think
Avatar
Depends if it's the same file
10:49 PM
The Glo HD has an IR touchscreen
Avatar
The scroll bars are now usable, thanks
11:02 PM
except the brightness dialog
11:02 PM
the screen shifts even if they aren't any special characters in book names (edited)
Avatar
Huh?
Avatar
What is you question?
Avatar
Avatar
Szybet
IR?
Infrared?
Avatar
Avatar
Szybet
the screen shifts even if they aren't any special characters in book names (edited)
Question
11:28 PM
Yes
Avatar
Avatar
tux-linux
Yes
Interesting one. But the call to wake the device should be the same
Avatar
Avatar
tux-linux
Question
Well what can i say, thats what is happening to pe (edited)
11:49 PM
The file chooser and last books section need a complete redesign anyway, so dont care about it
Avatar
Avatar
Szybet
the screen shifts even if they aren't any special characters in book names (edited)
Screenshot?
Avatar
Avatar
Szybet
The file chooser and last books section need a complete redesign anyway, so dont care about it
It's going into 1.9 release at least, I care!
Avatar
Avatar
Szybet
Interesting one. But the call to wake the device should be the same
And it did not do anything :/
Avatar
Avatar
tux-linux
And it did not do anything :/
Are you sure? I needed to edit 3 Giles at least
Avatar
well, i wiped out the whole 'wake' function, if that doesn't work then I don't know what works
Avatar
what are other irq ( interrupt ) commands in those files?
Avatar
Also, there is just one file for the zForce touchscreen
Avatar
+ can you compile the driver as module
Avatar
Avatar
tux-linux
Also, there is just one file for the zForce touchscreen
Impossible
6:33 AM
+ can you unbind the driver on the device?
Avatar
Avatar
Szybet
Impossible
why?
Avatar
Avatar
tux-linux
why?
Im optimistic
6:37 AM
+ you can gry the wake up interface i talked anout
11:31 AM
Thats something to fix, but its sleeping anyway so thats good
Avatar
Did you try USB debug mode on the Nia?
Avatar
You mean?
Avatar
BOOT_USB_DEBUG
Avatar
Yes, it works
👍 1
Avatar
nice
12:47 AM
kobo kernel code is a nightmare
12:48 AM
I still can't understand why it still resumes on touchscreen even if I tore the whole function down...
12:48 AM
diff --git a/kernel/linux-3.0.35-n437/drivers/input/touchscreen/zforce_i2c.c b/kernel/linux-3.0.35-n437/drivers/input/touchscreen/zforce_i2c.c index a562702d9f..583126728c 100755 --- a/kernel/linux-3.0.35-n437/drivers/input/touchscreen/zforce_i2c.c +++ b/kernel/linux-3.0.35-n437/drivers/input/touchscreen/zforce_i2c.c @@ -712,28 +712,6 @@ static int zForce_ir_touch_suspend(struct platform_device *pdev, pm_message_t st static int zForce_ir_touch_resume(struct platform_device *pdev) { - if (gSleep_Mode_Suspend) { - if ( !(41==gptHWCFG->m_val.bPCB && 3!=gptHWCFG->m_val.bUIConfig) ) { //auto active while power on zforce controller - if(8==gptHWCFG->m_val.bTouchCtrl || 11==gptHWCFG->m_val.bTouchCtrl) { - i2c_master_send(zForce_ir_touch_data.client, cmd_Active_v2, sizeof(cmd_Active_v2)); - }else{ - i2c_master_send(zForce_ir_touch_data.client, cmd_Active, sizeof(cmd_Active)); - } - } - if( custom_touchSizeLimit_set ) { - printk("command setTouchSizeLimits"); - i2c_master_send(zForce_ir_touch_data.client, cmd_SetTouchSizeLimits, sizeof(cmd_SetTouchSizeLimits)); - msleep(5); - } -// enable_irq_wake(zForce_ir_touch_data.client->irq); - request_irq(zForce_ir_touch_data.client->irq, zForce_ir_touch_ts_interrupt, IRQF_TRIGGER_FALLING, ZFORCE_TS_NAME, ZFORCE_TS_NAME); - } - else - disable_irq_wake(zForce_ir_touch_data.client->irq); - if (!zForce_ir_touch_detect_int_level ()) { - zForce_ir_touch_ts_triggered (); - } - return 0; }
12:49 AM
I mean, if that doesn't work, I don't know what works
Avatar
Me too, but look up to #chat
Avatar
I will need to disable wake up for the charger too. When its 100% it wakes him up, then it goes to sleep but it wakes I'm up and it's a circle (edited)
👍 1
Avatar
I updated the build_u-boot.sh script in the kernel repo; building U-Boot is now much easier
1:33 AM
Example for the Nia: env TOOLCHAINDIR=/home/build/inkbox/kernel/toolchain/arm-nickel-linux-gnueabihf TARGET=arm-nickel-linux-gnueabihf THREADS=16 scripts/build_u-boot.sh n306
Avatar
It was easy already, but still cool
👍 1
Avatar
Can you fdisk -l your SD card?
Avatar
Yes, i will do it today
Avatar
Avatar
tux-linux
Can you fdisk -l your SD card?
kobo:~# fdisk -l Disk /dev/mmcblk0: 15 GB, 15931539456 bytes, 31116288 sectors 486192 cylinders, 4 heads, 16 sectors/track Units: sectors of 1 * 512 = 512 bytes Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type /dev/mmcblk0p1 24,0,1 38,63,32 49152 79871 30720 15.0M 83 Linux /dev/mmcblk0p2 51,0,1 550,63,32 104448 1128447 1024000 500M 83 Linux /dev/mmcblk0p3 551,0,1 678,63,32 1128448 1390591 262144 128M 83 Linux /dev/mmcblk0p4 679,0,1 857,31,32 1390592 31116287 29725696 14.1G 83 Linux kobo:~# why do you need it
9:01 PM
and: fuse-overlayfs 14G 2.7G 11G 20% /kobo so i have 11G available for books, its 3 more than on nickel with the same sd card
9:05 PM
the whole screen is shifting when there are recent books, with no special characters in recent books. removing files in kobo:/opt/config/08-recent_books# fixes the issue. Its needs a whole redesign, but i just say that its completly broken
Avatar
Avatar
Szybet
kobo:~# fdisk -l Disk /dev/mmcblk0: 15 GB, 15931539456 bytes, 31116288 sectors 486192 cylinders, 4 heads, 16 sectors/track Units: sectors of 1 * 512 = 512 bytes Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type /dev/mmcblk0p1 24,0,1 38,63,32 49152 79871 30720 15.0M 83 Linux /dev/mmcblk0p2 51,0,1 550,63,32 104448 1128447 1024000 500M 83 Linux /dev/mmcblk0p3 551,0,1 678,63,32 1128448 1390591 262144 128M 83 Linux /dev/mmcblk0p4 679,0,1 857,31,32 1390592 31116287 29725696 14.1G 83 Linux kobo:~# why do you need it
dd if=/dev/mmcblk0 bs=512 count=49151 of=n306.bin
10:41 PM
Send me the file
Avatar
what is this... ( EDIT: i deleted those files ) (edited)
10:46 PM
there is some interesting... text?
Avatar
It's not supposed to weigh like 20M?
Avatar
i coppied your command?
Avatar
What's the output?
Avatar
i have no idea why it was 8mb
11:17 PM
now its 25
Avatar
Ok thanks
11:21 PM
It's for imgtool
11:22 PM
so?
11:22 PM
there is some text
11:22 PM
maybe a serial number
Avatar
Unpartitioned space Contains waveform Yeah, I'll blank out the serial number
Avatar
i hope you do it
Avatar
Avatar
Szybet
maybe a serial number
InkBox UID? Does it match the one in Settings?
Avatar
Avatar
Szybet
i hope you do it
InkBox UID is pretty much worthless regarding warranty or anything
Avatar
Avatar
Szybet
?
Open settings, show system info
Avatar
Avatar
tux-linux
InkBox UID is pretty much worthless regarding warranty or anything
It's a random string of 256 bytes
Avatar
Avatar
tux-linux
InkBox UID is pretty much worthless regarding warranty or anything
its something not from nickel?
Avatar
Avatar
tux-linux
Open settings, show system info
yes its the same
👍 1
Avatar
Yeah, it overwrites the serial number
11:27 PM
and the settings menu is broken
11:27 PM
there is a horizontal slider
Avatar
Picture?
Avatar
In what way is it broken?
11:29 PM
It's normal There's not enough space for some element
11:29 PM
(I suspect the timezone thing)
Avatar
Avatar
tux-linux
It's normal There's not enough space for some element
its bad
Avatar
What do you want that I do
11:30 PM
It just doesn't fit the screen
Avatar
timezone could cut out the text or move the box to the left, if its really it
Avatar
Avatar
tux-linux
It just doesn't fit the screen
its a horibble design and it can be fixed
Avatar
I would need to remove the reboot req. text
11:31 PM
Which I'm sure you would say would be worse
Avatar
Avatar
tux-linux
I would need to remove the reboot req. text
no
Avatar
Or reduce the qcombobox font size But I already did that and it's getting really small
11:34 PM
Maybe I can do it
Avatar
where is the ui file for the seconf page
Avatar
In the second page of settings.ui
11:34 PM
Don't reduce the font size of timezone label, it will break the design language
11:35 PM
The combo box already breaks it in a quiet way and I don't really like it
Avatar
Avatar
tux-linux
In the second page of settings.ui
what
Avatar
Or maybe you have a better abbreviation for reboot required
Avatar
a toast after setting timezone
Avatar
Avatar
Szybet
what
There are two arrows on the top right of the qstackedwidget
Avatar
but its not a good fix
Avatar
Avatar
Szybet
a toast after setting timezone
Which would say what?
11:36 PM
Oooh
Avatar
Avatar
tux-linux
Which would say what?
what
Avatar
But if then you mess up one time with the combo box and want to set it again, you have to wait
11:37 PM
That's why I put it in the label
11:37 PM
I can't figure out why it needs a reboot but it is needed
Avatar
a toast that dissapears after a click?
Avatar
Maybe
Avatar
Avatar
tux-linux
I can't figure out why it needs a reboot but it is needed
wait... on arch linux you need to source a file or smth to apply timezone
Avatar
No, here it's a bind mount and symlink problem Nonsense, I didn't try to understand more
Avatar
umount / mount? meh
Avatar
That could be something
Avatar
Avatar
tux-linux
There are two arrows on the top right of the qstackedwidget
where...
Avatar
Maybe adding that to ibxd and calling it when the combo box value changed could fix the problem
Avatar
Avatar
Szybet
where...
Don't have access to that now Otherwise you can click the page_* elements in the right bar
Avatar
maybe you need to do this in chroot
Avatar
It's just the bind mount in the Kobo chroot that doesn't point to the right thing
Avatar
or restart inkbox_gui
Avatar
You really think an user would like that?
Avatar
after clicking ok applying settings and 10s wait for the gui
Avatar
Avatar
tux-linux
It's just the bind mount in the Kobo chroot that doesn't point to the right thing
It's like the bind mount records the content of the symlink and never updates it afterwards
Avatar
its better than reboot
Avatar
No, I think a simple unmount/mount in ibxd can work
Avatar
Avatar
tux-linux
Don't have access to that now Otherwise you can click the page_* elements in the right bar
thats some serious magic
11:44 PM
11:44 PM
hm?
Avatar
Also you need to get back to page 1 before saving the file or it will display the last page you were in in the compiled version
11:44 PM
No, the text just takes up too much space in the first place
11:44 PM
I think that fixing the reboot required problem will be better
Avatar
Avatar
tux-linux
No, the text just takes up too much space in the first place
cut it off
11:47 PM
use a combo widget that will use the entire screen
11:47 PM
really, anything
Avatar
Avatar
tux-linux
I think that fixing the reboot required problem will be better
I will do that
Avatar
Avatar
tux-linux
dd if=/dev/mmcblk0 bs=512 count=49151 of=n306.bin
is this actually a good idea? in never devices, some other revisions the chips / parts could be diffrent, so a diffrent config is there. it could damage or brick the device?
Avatar
We'll find out when it happens
8:13 PM
InkBox is not providing any warranty
8:14 PM
So, not our fault if it breaks the device
Avatar
Avatar
tux-linux
We'll find out when it happens
it will be to late
Avatar
Avatar
tux-linux
InkBox is not providing any warranty
put a big warning, or make a check status
8:14 PM
dd this and that and compare it
Avatar
Also, we don't have a choice If we don't include that unpartitioned space the device won't boot
Avatar
Avatar
Szybet
dd this and that and compare it
a guide, maybe i will write it
Avatar
We need devices to compare
8:16 PM
But it is also a nightmare for Kobo to put a different unpartitioned space in each device So when they change hardware we will probably know
Avatar
well okay
Avatar
Besides, it's not like unpartitioned space from another device will brick it I have a touch B and put the Touch C image on it It didn't work well, but no problems and when using a correct U-Boot and kernel there was no permanent damage
Avatar
well okay but its still risk
Avatar
Waveform data is not portable
12:02 AM
the rest should be
Avatar
Avatar
NiLuJe
Waveform data is not portable
you mean?
Avatar
(IIRC, I don't remember most of the crap in there ;p).
12:04 AM
waveform data is tied to a specific production series of screens
Avatar
Avatar
NiLuJe
waveform data is tied to a specific production series of screens
@tux-linux so we have a problem
Avatar
There used to be a QR code or some shit on the flex cable to ID 'em
12:05 AM
its next to it
12:05 AM
in the nia
12:05 AM
propably
Avatar
(This may or may not be less of an issue on NTX boards, but it was fatal (as in, broken refreshes) on Kindles
Avatar
Avatar
NiLuJe
waveform data is tied to a specific production series of screens
No, shit But how do you explain the people that got InkBox up and running without issues on their devices? How often does the production line change?
Avatar
Avatar
NiLuJe
(This may or may not be less of an issue on NTX boards, but it was fatal (as in, broken refreshes) on Kindles
Reversible?
12:54 AM
The wrong waveform on the Touch B did no harm at all after a clean SD flash
Avatar
Avatar
NiLuJe
There used to be a QR code or some shit on the flex cable to ID 'em
And how do you explain the success people have in replacing their screens without actually scanning the QR code and just going with the generic model number?
Avatar
Which is why I said something something NTX ;p.
1:01 AM
It's an issue for sure on lab126 boards
Avatar
Ok I'm just kind of freaking out right now...
Avatar
And theoretically, every waveform is tied to a specific vcom
Avatar
I discussed about that with @andi and came to the conclusion that it didn't matter, but apparently not (edited)
Avatar
Avatar
NiLuJe
And theoretically, every waveform is tied to a specific vcom
vcom?
Avatar
I don't remember, brain is mush. it broke screen replacements on Kindles for sure 😉
👍 1
Avatar
I had people on GH that tested the stock images with their device and they apparently didn't encounter problems either @dill also has it working on his Mini
Avatar
Keep in mind NTX is probably outputting less boards than lab126 by a significant order of magnitude
👍 1
1:05 AM
Making these kind of changes much harder to catch in the wild
👍 1
Avatar
Avatar
tux-linux
I had people on GH that tested the stock images with their device and they apparently didn't encounter problems either @dill also has it working on his Mini
yep! working great
👍 1
Avatar
So @tux-linux maybe a script?
Avatar
Why? How? It will make the installing experience crap Imagine running it on Windows
Avatar
imagine using windows
2:07 PM
a script that will write the first half of the image and the other one, without overwriting waveform
Avatar
How do you do that on Windows?
Avatar
run wsl2 for it
Avatar
There is no dd, I think you have to write in cpp or something an entire app
Avatar
do you have a better - safe idea?
Avatar
Avatar
Szybet
run wsl2 for it
You really think everyone will be willing to install wsl2 on their PC just for that? Also you can access device nodes in wsl2? Didn't know that
Avatar
i-dont-know
2:12 PM
thats just my idea
Avatar
Maybe we should create a cross platform Qt app, InkBox image flasher, like the rpi one
2:12 PM
That would be my best guess
Avatar
then how do you use it on windows? you said there is no dd
2:15 PM
also, script, app, whatever
Avatar
You need to invent dd
2:16 PM
I guess
2:16 PM
Write raw bytes to the MMC
2:16 PM
Yeah, this will not be fun
Avatar
nope nope nope nope xD
Avatar
I think that's what etcher does
2:18 PM
there are some dd for windows
Avatar
Yes, but no sane user of Windows will be willing to open a terminal and enter commands and do something they haven't ever done before
2:20 PM
For now, I will put a warning, also the good thing is that the wrong waveform doesn't seem to brick the device, but the warning will be there
Avatar
Avatar
tux-linux
Yes, but no sane user of Windows will be willing to open a terminal and enter commands and do something they haven't ever done before
sadly
2:23 PM
they should make a copy of the image
2:23 PM
everyone
Avatar
Yeah, but again it requires cli
2:26 PM
And imgtool is probably not that suited for Windows or any end user, it uses qemu-nbd and asks for root access every minute
2:53 PM
Fine?
Avatar
describe the issue maybe more?
3:37 PM
waveform etc
3:37 PM
and backup
Avatar
http://23.163.0.39/bundles/inkbox/native/n306/inkbox-1.9-n306.xz Please test if recoveryfs boots and gets to main GUI interface
Avatar
Doesn't recovery was made by the update? (edited)
Avatar
...no?
8:59 AM
Have you seen the actual size of the recoveryfs?
Avatar
500 Mb
9:58 AM
can i just copy files from the image recovery partition and put then on the kobo?
Avatar
And why recovery is bigger than rootfs
10:29 AM
Are there libraries for p4?
Avatar
Avatar
Szybet
can i just copy files from the image recovery partition and put then on the kobo?
yeah you could do that
Avatar
Avatar
Szybet
And why recovery is bigger than rootfs
because it contains user data + rootfs + kernel + u-boot
Avatar
User data?
Avatar
contents of p4
Avatar
This makes more sense
Avatar
Avatar
tux-linux
http://23.163.0.39/bundles/inkbox/native/n306/inkbox-1.9-n306.xz Please test if recoveryfs boots and gets to main GUI interface
Does it boot to recoveryfs?
Avatar
I will check it today
Avatar
Avatar
tux-linux
http://23.163.0.39/bundles/inkbox/native/n306/inkbox-1.9-n306.xz Please test if recoveryfs boots and gets to main GUI interface
2:45 PM
😐
2:46 PM
7h~
2:48 PM
okay, now its better
2:48 PM
but still, it jumps like crazy between those speeds
Avatar
It works
3:35 PM
thats a pretty cool setup
👍 1
3:35 PM
maybe give a note for the nia + the other ereader that kobox can cause crashes
👍 1
Avatar
passcode code doesn't work
3:44 PM
i mean, while going to sleep
3:44 PM
when it boots its fine, im asked for it
Avatar
Avatar
Szybet
passcode code doesn't work
Yeah, that's sometimes to fix up for 2.0
Avatar
Avatar
Szybet
i mean, while going to sleep
this horrible sleep manager is back D:
Avatar
Avatar
tux-linux
Yeah, that's sometimes to fix up for 2.0
do i need to create a github issue or not for this?
Avatar
No I won't forget to fix it
Avatar
sleep doesn't work even when disabling passcode
3:47 PM
not cool
Avatar
Avatar
Szybet
sleep doesn't work even when disabling passcode
In what way?
Avatar
oh, look: 1. disabled passcode 2. sleep button clicked 3. error 255 4. it goes back to inkbox 5. it goes to sleep, but in the inkbox menu so it seems like it freezes
Avatar
Maybe try to reboot
3:49 PM
At least it goes to sleep
Avatar
Avatar
tux-linux
Maybe try to reboot
now it works (edited)
👍 1
Avatar
oh i forgot to test the think with plato
11:13 PM
in kobo:/kobo/sys/devices/platform/soc/2100000.aips-bus/21f8000.i2c/i2c-3/3-0032/ricoh619-battery/power_supply/mc13892_bat
11:13 PM
capacity status type current_now subsystem uevent device technology voltage_min_design health temp voltage_now power time_to_empty_now present time_to_full_now
11:13 PM
time_to_empty_now seems to say something but full no
11:14 PM
technology says li-io, but in the device is a li po -_-
11:14 PM
stupid kobo
11:14 PM
temp says 35~ while charging?
11:15 PM
i should feel that heat
11:15 PM
health says good
11:16 PM
current doesn't change ;/
11:17 PM
are these informations available in other devices?
11:17 PM
uevent: POWER_SUPPLY_NAME=mc13892_bat POWER_SUPPLY_STATUS=Discharging POWER_SUPPLY_PRESENT=1 POWER_SUPPLY_VOLTAGE_NOW=4136700 POWER_SUPPLY_CURRENT_NOW=895 POWER_SUPPLY_CAPACITY=93 POWER_SUPPLY_TEMP=340 POWER_SUPPLY_TIME_TO_EMPTY_NOW=30420 POWER_SUPPLY_TIME_TO_FULL_NOW=3932100 POWER_SUPPLY_TECHNOLOGY=Li-ion POWER_SUPPLY_HEALTH=Good POWER_SUPPLY_VOLTAGE_MIN_DESIGN=3350
11:18 PM
thats all interesting
11:18 PM
i will check in the future if its the same in nickel, becouse this is weird
Avatar
The ttfull and ttempty do fluctuate almost sensibly, yeah
11:33 PM
(they're pretty fucking jittery, though, the simple act of sending a read that way will skew the results)
Avatar
does li-ion matter? or should there be li-po
11:34 PM
^for battery life
Avatar
Doesn't matter, but I don't recall it saying Li-Po anywhere
Avatar
well in nickel battery life is better, so im searching the issue
11:35 PM
@tux-linux how do you launched plato? it has some lib problems
11:36 PM
Nickel aggressively puts the device into standby after ~5s of inactivity
11:36 PM
(actual suspend to ram w/ wakeup pins untouched)
11:37 PM
Shouldn't be overly noticeable on i.MX SoCs, though, but makes a huge difference on sunxi
Avatar
Avatar
NiLuJe
Nickel aggressively puts the device into standby after ~5s of inactivity
maybe thats why it was made that the touchscreen puts the device from sleep? (edited)
Avatar
edited it, my fault
Avatar
Wakes up, you mean?
11:37 PM
interrupts
11:38 PM
buttons & touch
Avatar
this makes sense
Avatar
and hall sensor and gyro, for that matter
Avatar
but how they did that when i put it properly to sleep, it doesn't wake up when i touch the screen? (edited)
Avatar
We've just finished implementing that in KOReader
11:38 PM
state-extended to 1 disables the wakeup pins
Avatar
but this didn't worked for the nia?...
11:39 PM
Don't have a Nia, but if it's the same kernel as the Libra 2, it's probably hilariously borked (edited)
Avatar
its propably similar
Avatar
i have tryied to get this error about e-ink for an hour, no success -_-
12:31 AM
im giving up for today
12:31 AM
i have no idea why, how
12:31 AM
i will try tommorow to get it
Avatar
Did you enable x11?
Avatar
Yes, of course
1:09 AM
I have masę various thing in various apps
1:09 AM
Nothing
Avatar
Well, nice then Click the next button a thousand times when reading a book
1:09 AM
Toggle options menu several times a second Etc
Avatar
I tryied
1:12 AM
I will tommorow too
Avatar
Avatar
tux-linux
Well, nice then Click the next button a thousand times when reading a book
No, not nice
1:13 AM
We still dont know the issue
Avatar
Avatar
Szybet
No, not nice
In the sense that you can probably use KoBox extensions
Avatar
Propably
Avatar
I was trying some more, nothing
12:14 AM
No error, kobox works
😂 1
12:15 AM
Now we need to know why
Avatar
There is no explanation When you want to show that sometime doesn't work, it suddenly works
12:16 AM
Suggestion: spam epdc with multiple fbink writes
Avatar
I was having kobox errors on the self made inkbox 2 month ago, the differences between now and then were:
  • my self compiled kernel ( wakeups from the screen were still there
  • no recovery partition
  • USB ip, was on, but I turned it on tonight and it works
  • files were put be myself on the partition, maybe I missed something, maybe they were damaged because of network
  • what more... idk, maybe you know?
Avatar
the only thing I would see would be the kernel but even there, it isn't related even in a remote way
Avatar
Avatar
Szybet
I was having kobox errors on the self made inkbox 2 month ago, the differences between now and then were:
  • my self compiled kernel ( wakeups from the screen were still there
  • no recovery partition
  • USB ip, was on, but I turned it on tonight and it works
  • files were put be myself on the partition, maybe I missed something, maybe they were damaged because of network
  • what more... idk, maybe you know?
Time on the device was not working properly
Avatar
again, it's irqwake stuff ...maybe?
Avatar
Avatar
tux-linux
the only thing I would see would be the kernel but even there, it isn't related even in a remote way
Maybe I could try an old kernel
Avatar
maybe it is the fix for the libra
12:21 AM
you could don't expect everything to work in GUI/system though
Avatar
Avatar
tux-linux
maybe it is the fix for the libra
Yeah, flash the image on it, there is probably your self made inkbox
12:23 AM
You could try plato when the error is still there
Avatar
libra has an emmc so, not doable that easily
Avatar
Idk, install in some way the system build from image script
Avatar
Wi-Fi being enabled or the device being plugged to a power source are somewhat proven way to avoid the epdc issues on the Libra 2, FWIW
Avatar
Nonsense How can that work
Avatar
I would wager switching to the performance governor and/or raising the minimum cpu freq would, too
Avatar
Ok, thanks for the insight
Avatar
bus frequency and weird arm crap
👍 1
Avatar
Avatar
NiLuJe
Wi-Fi being enabled or the device being plugged to a power source are somewhat proven way to avoid the epdc issues on the Libra 2, FWIW
LIbra 2 is imx6sll right?
Avatar
Nia is imx6ull maybe it can work too Libra original is imx6sll
Avatar
Oh, the Nia runs an ULL, never mind me
Avatar
You never know...
Avatar
There's like, three of 'em in the wild, hard to tell 😄
👍 1
😄 1
Avatar
Still, thanks for the suggestion, it might work to "fix" this problem for the Libra original
2:46 AM
and maybe in the Nia with some luck
Avatar
Avatar
NiLuJe
Wi-Fi being enabled or the device being plugged to a power source are somewhat proven way to avoid the epdc issues on the Libra 2, FWIW
i was looking for the issue with wifi enabled and plugged into power source...
8:42 AM
well more testing is needed
Avatar
Avatar
NiLuJe
Wi-Fi being enabled or the device being plugged to a power source are somewhat proven way to avoid the epdc issues on the Libra 2, FWIW
i tested it, its true
11:36 PM
+ the wifi interface dissapears after that
11:36 PM
Avatar
maybe just the modules were unloaded?
11:44 PM
idk
Avatar
Avatar
Szybet
i tested it, its true
it cant be reversed sadly
11:53 PM
setting performance governor avoids the issue
11:53 PM
but it was tested shortly
11:53 PM
and kobox apps are faster
11:54 PM
and i dont know if unsetting it after would change something
11:54 PM
hmm
11:54 PM
@tux-linux what launches kobox apps, what is called when they are closed? i want to add some code for testing, described a bit above
Avatar
Hmmm Interesting /etc/init.d/xorg.sh
Avatar
You should test it on the libra tok
Avatar
update screen permission denied happened to me now while connected to usb + wifi
7:02 PM
i was developing sanki (edited)
7:02 PM
not good
7:02 PM
i will try one more time but with everything this + performance governor
Avatar
Happened again, with performance governor
8:28 PM
I assume its random
Avatar
Sad
Avatar
we would only need to know what causes the error in the kernel
10:16 PM
:/
Avatar
Needs verbose epdc logging enabled (edited)
Avatar
I don't do kernels, check what actually enables the gallen_log stuff (or whatever it's actually using) (edited)
2:28 AM
Might be a mix of actually sane upstream stuff and crazy ntx hacks
Avatar
Avatar
Szybet
the command to compile: env GITDIR="${PWD}" TOOLCHAINDIR="${PWD}/toolchain/arm-nickel-linux-gnueabihf/" THREADS=$(($(nproc)*2)) TARGET=arm-nickel-linux-gnueabihf scripts/build_kernel.sh n306 root the command to write: sudo dd if=zImage-root of=/dev/sdd bs=512 seek=81920
this here
12:18 PM
to compile and write
12:18 PM
i hope
Avatar
so continuing the thread from #dev
9:30 PM
the kernel compiled from my arch machine, not debian container
9:30 PM
what the f*ck is wrong with all of this
Avatar
Arch
9:37 PM
Couldn't find the error in the log from my phone
Avatar
Avatar
tux-linux
Arch
did you even understand what im talking?
Avatar
Yes
9:39 PM
I didn't have success with Gentoo
9:39 PM
IIRC not Arch either
Avatar
Avatar
tux-linux
I didn't have success with Gentoo
you have problems too?
Avatar
I build it on Debian
Avatar
there is something messed up with permissions
9:41 PM
i created a user with sudo access, cloned the repo clean and it compiled on debian
9:41 PM
it didn't worked with root ( user ) (edited)
9:42 PM
also, can i test the kernel with emu?
9:42 PM
if it will work
9:52 PM
It needs the emu kernel
9:59 PM
I updated the kernel
9:59 PM
and error code 5 appered
9:59 PM
wtf
10:00 PM
can i access anything? do i need to open the device? ;_;
10:02 PM
well help @tux-linux
Avatar
Avatar
Szybet
can i access anything? do i need to open the device? ;_;
Probably
Avatar
ok, why did this happen
10:22 PM
?
Avatar
I don't know
Avatar
It would say that because your rootfs signature is invalid
10:22 PM
OH
10:23 PM
You forgot to make device nodes
10:23 PM
Am I right?
10:23 PM
why isint it in the script
10:23 PM
WHY?
Avatar
there is a script
Avatar
why isin't it launched from the main script
Avatar
For some reason I don't remember It could be included
10:23 PM
It is also written in the readme
Avatar
oh it is in the readme
10:24 PM
so the dumb person here is me
10:24 PM
nice...
Avatar
Well, you know the fix
Avatar
Where is my ifixit kit
10:24 PM
🥴
Avatar
Maybe a credit card can do
Avatar
why isin't debug mode launched?
10:29 PM
its a rooted kernel
Avatar
Because it can't launch (edited)
Avatar
becouse
Avatar
No devices nodes
Avatar
this makes sense
10:35 PM
can't you simple check if files exist ( device nodes ) ?
Avatar
I will add it to the main script
Avatar
do i need to do it myself / create a github issie?
Avatar
Avatar
tux-linux
I will add it to the main script
for 100%?
10:44 PM
with what key do i need to sign the gui bundle?
10:45 PM
the nia one?
10:47 PM
its an update.isa
10:47 PM
weird
10:47 PM
what
Avatar
so basically how do i update the gui bundle
11:05 PM
replace in update/update.isa
11:05 PM
now i remember
Avatar
we reallty need this guide
11:23 PM
Szybet_bundle is propably outdated
11:23 PM
🥴
Avatar
Avatar
Szybet
Click to see attachment 🖼️
What's the problem?
Avatar
its asking me to update
11:26 PM
propably becouse i set gui_bundle version to szybet_bundle
11:26 PM
¯\_(ツ)_/¯
11:26 PM
is there a way to disable this message?
Avatar
What's in .inkbox?
11:27 PM
huh
Avatar
Really strange
11:28 PM
What rootfs commit are you on?
11:29 PM
Try restart update_inkbox
11:29 PM
Then relaunch GUI
Avatar
Avatar
tux-linux
What rootfs commit are you on?
i cloned it a hour ago
11:30 PM
cp: cannot create regular file '/kobo/mnt/onboard/.adds/qt-linux-5.15.2-kobo/lib/libzip.so': Read-only file system 0 files (152.0 KiB) copied in 0.1 seconds ( 0.0 KiB/s).
11:30 PM
well
Avatar
Avatar
Szybet
cp: cannot create regular file '/kobo/mnt/onboard/.adds/qt-linux-5.15.2-kobo/lib/libzip.so': Read-only file system 0 files (152.0 KiB) copied in 0.1 seconds ( 0.0 KiB/s).
so now how do i add single libraries
Avatar
Repackage bundle
Avatar
i mean for user apps
11:33 PM
they cant do that
11:33 PM
kobo:(unknown)# service update_inkbox restart * Checking for available updates ... Update skipped or no update available, aborting ... [ ok ] ash: getcwd: No such file or directory kobo:(unknown)#
Avatar
Avatar
Szybet
so now how do i add single libraries
Add them in a lib/ folder for each app, we can tweak ld library path to look there too (edited)
Avatar
Well, for each app that needs a particular lib, we can put it in a folder where the app is /mnt/onboard/.apps/[app-isa-root]/lib
12:48 PM
I think that doing it with squashfs in .isa is simpler for signing
12:51 PM
The idea: 1. Put .isa app bundle in .apps 2. On next reboot a shell script detects if there are apps there. If yes it verifies the bundle and if successful creates a folder and mounts the app to it. If signature is invalid it might display an alert splash or a dialog (generalDialog) to tell the user.
12:52 PM
It will need to be run each time inkbox_gui starts, and maybe it can be an ibxd FIFO function to allow live updating
12:53 PM
Why did I write this here
Avatar
stop doing the boot longer
12:54 PM
i don't accept this
Avatar
When do you want to verify apps then
Avatar
we cant verify them once?
Avatar
This is the biggest security risk
Avatar
and this overcomplicates things
Avatar
You keep asking me for security risks, there's one now
Avatar
like how will you manage storage for apps? i want to store decks with sanki
Avatar
Avatar
tux-linux
You keep asking me for security risks, there's one now
i see
Avatar
For that you can create a folder in apps called [app-name_data]
12:58 PM
Please go to #dev
Avatar
sometimes i put my nia to sleep for one day, i come back and its 50% sometimes i come back, its 99%
11:43 PM
Avatar
is TP3(?)8 (the 4 pads next to the console) a uart?
5:17 PM
the bluetooth one? or the disabled one?
Avatar
you mean?
5:18 PM
the big pads that are THT are uart, i use them
5:18 PM
but the small ones on the left, idk
Avatar
yes, the non-THT
5:21 PM
Kobo nia ereader with audio added. Contribute to Szybet/niAudio development by creating an account on GitHub.
Avatar
Avatar
andi
yes, the non-THT
well i didnt tryied tht ones are connected to the cpu, so i can see uboot messages
Avatar
Kobo nia ereader with audio added. Contribute to Szybet/niAudio development by creating an account on GitHub.
Avatar
i wonder why i didn't uploaded it earlier to github
5:26 PM
here is everything you want to know
5:26 PM
clear pictures with names that i readed using a magnifying glass
Avatar
one typo: Ricoh RC5... and not AC5
Avatar
oh okay
Avatar
BWNCSA : very interesting: I guess it is Sy7636A but on the Kobo Libra H2O, it has a different marking
Avatar
well i uploaded everything on github
5:45 PM
this pdf
Avatar
LAN eKTF2232ALW: LAN is part of the logo of elan, so it is probably eLAN
7:32 PM
we have
7:32 PM
andi@aktux:~/kernel/drivers/input/touchscreen$ grep 'compatible.*ektf' *.c ektf2127.c: { .compatible = "elan,ektf2127" }, ektf2127.c: { .compatible = "elan,ektf2132" }, elants_i2c.c: { .compatible = "elan,ektf3624", .data = (void *)EKTF3624 },
7:33 PM
hopefully it is compatible
Avatar
it does look like it
Avatar
That's the controller in the Sage & Elipsa, fwiw
7:33 PM
(It sucks hairy balls)
Avatar
btw... isint it a risk running an untested kernel?
Avatar
Very prone to throwing events into the void when it's in low power state
Avatar
Avatar
Szybet
btw... isint it a risk running an untested kernel?
hardware level damage?
Avatar
the risk is not totally zero, but I think the risk of damaging something while fiddling with serial cable is also there. But I think the most important parts are tested (cpu frequency handling for example). Next risk is mixing up pins. There are some chances to mix something important up
7:40 PM
But I have blew up hardware because of bad kernels
Avatar
too much voltage on regulators for example?
Avatar
thats bad
7:42 PM
i dont really can afford blowing my only ereader
Avatar
do you have shell access?
7:42 PM
to the nia
Avatar
i have access to everything
Avatar
so you can dump regulator states
Avatar
its possible, not like i knew how
Avatar
for name in /sys/class/regulator/regulator.* ; do echo `cat $name/name` `cat $name/microvolts` `cat $name/state` ; done (edited)
7:47 PM
no
7:47 PM
messed up
Avatar
for name in /sys/class/regulator/regulator.* ; do echo $(cat $name/name) $(cat $name/microvolts) $(cat $name/state) ; done (edited)
Avatar
use ```
7:48 PM
nope
7:48 PM
Avatar
changed it
Avatar
obo:~# for name in /sys/class/regulator/regulator.* ; do echo `cat $name/name` `cat $n ame/microvolts` `cat $name/state` ; done cat: /sys/class/regulator/regulator.0/microvolts: No such file or directory cat: /sys/class/regulator/regulator.0/state: No such file or directory regulator-dummy vdd3p0 3200000 enabled RICOH619_DC5 1800000 enabled RICOH619_LDO1 900000 disabled RICOH619_LDO2 900000 enabled RICOH619_LDO3 900000 disabled RICOH619_LDO4 900000 disabled RICOH619_LDO5 600000 enabled RICOH619_LDO6 600000 enabled RICOH619_LDO7 900000 enabled RICOH619_LDO8 1800000 enabled RICOH619_LDO9 900000 disabled cpu 1250000 enabled RICOH619_LDO10 900000 disabled RICOH619_LDORTC1 1700000 enabled RICOH619_LDORTC2 900000 disabled cat: /sys/class/regulator/regulator.23/microvolts: No such file or directory DISPLAY_SY7636 disabled cat: /sys/class/regulator/regulator.24/microvolts: No such file or directory VCOM_SY7636 disabled cat: /sys/class/regulator/regulator.25/microvolts: No such file or directory V3P3_SY7636 disabled cat: /sys/class/regulator/regulator.26/state: No such file or directory TMST_SY7636 0 vddsoc 1250000 enabled cat: /sys/class/regulator/regulator.4/state: No such file or directory vref-3v3 3300000 cat: /sys/class/regulator/regulator.5/state: No such file or directory SD1_SPWR 3000000 RICOH619_DC1 1400000 enabled RICOH619_DC2 600000 enabled RICOH619_DC3 600000 enabled RICOH619_DC4 1200000 enabled kobo:~#
7:50 PM
well i can help you prepare the kernel, but i wont test it
7:50 PM
tux-linux would be sad if he lost a contributor
7:50 PM
then we can wait for others to test it
Avatar
Avatar
Szybet
tux-linux would be sad if he lost a contributor
happens all the time hehe
7:51 PM
but you two seem to be hanging tight
Avatar
here were some people that had the nia... but we cant ping them because we still didnt created roles for devices
Avatar
Avatar
tux-linux
happens all the time hehe
but its not a reason to do it intentionally knowing the risk
7:51 PM
🥴
Avatar
It's been an incredibly unpopular device in my experience, FWIW
7:52 PM
So good luck finding actual users? ;o)
Avatar
here were 5 people using it
7:52 PM
for sure
Avatar
yeah
Avatar
there were also like 3 people in xcsoar project
7:53 PM
maybe they would want to do this? they have problems with the existing kernel
Avatar
(Which... makes sense, actually, it's a failed Clara 2)
7:53 PM
Hence the actual Clara 2 that's in the works ;p
7:53 PM
Possibly not an NTX board (here's hoping) (edited)
Avatar
Avatar
NiLuJe
Possibly not an NTX board (here's hoping) (edited)
it could be worse...
7:55 PM
thinks about B300
Avatar
what are the options?
7:55 PM
i hope they wont lock it down
Avatar
Well, from where I'm standing the latest round of i.MX devices are more of a failure than the sunxi ones (edited)
7:56 PM
We knew going in that the sunxi would be awful at power efficiency
7:56 PM
Because we're used to that on PB devices (edited)
7:56 PM
But at least they don't randomly crash every 5 seconds (lookin' at you, Libra 2)
Avatar
Avatar
NiLuJe
We knew going in that the sunxi would be awful at power efficiency
they need to put a bigger as for capacity battery in them... they are really small
Avatar
That's the Elipsa. It goes by purely by having two gigantic cells.
7:57 PM
The Sage... not so much ;o)
Avatar
well, I like the imx6 ones
Avatar
And the hastily designed workaround (a.k.a., the PowerCover) behaves infinitely worse than a dumb usb power brick, it's hilarious
Avatar
quite well pm in mainline kernel
Avatar
Oh, definitely, I'd have been happy w/ an i.MX7D
Avatar
that one has afaik bad pm in mainline kernel
7:59 PM
hmm, looking at ebay, the nia is at >100 euros...
7:59 PM
ouch
Avatar
I'll believe it, AFAIK, rM had trouble with it, and lab126 too, it took them ages to polish it for the Oasis 2 (edited)
8:00 PM
Possibly longer than it took them to deal with a new platform for the PW5 (mtk), although they had extensive experience with that one with the Fires
8:00 PM
And it trounces the Sage, it's hilarious
8:01 PM
Probably helps that the kernel & hardware team doesn't feel like a lone guy working in his garage (hi, ntx ;p) 😄
Avatar
yeah
Avatar
I think if someone makes good pm for imx7, then everyone will have fun with it
8:02 PM
it is imho more a task of NXP to mainline it
8:03 PM
Putting one out on aarch64 would be neat, too.
Avatar
About the nia price, I expected something well below 100 euros
Avatar
Avatar
NiLuJe
Putting one out on aarch64 would be neat, too.
yes
8:03 PM
with 8G of RAM
8:03 PM
ok no I'm just dreaming
Avatar
Although admittedly I have no idea how the power efficiency compares to our old cortex cores, so I don't really know if that would even make sense 😉
👍 1
Avatar
Avatar
andi
About the nia price, I expected something well below 100 euros
it was 500 zł ( 110 Euros ) when i buyed it almost a year ago
Avatar
here in Canada we sometimes have very good deals about Kobos
Avatar
in poland only one online shop selled one kobo, it was the nia...
Avatar
do they sell tolinos?
Avatar
no, Kobos only (AFAIK, eBay is not impossible though) (edited)
8:07 PM
Kobo's home country is Canada
8:07 PM
so, there you go
Avatar
well, they question was more for @Szybet (edited)
8:08 PM
it's probably possible to order them from Germany
Avatar
Avatar
andi
do they sell tolinos?
nope, i havent seen any but in germany they are everywhere, even in random bool libraries to buy
Avatar
yes, a friend of mine bought one when there was a good deal. We thought it would be compatible with my Kobo Clara HD, everyone says they are identical
8:10 PM
looked at the chips, and board it seems to be
8:10 PM
but
8:11 PM
really looking at the SoC reveals that the shine3 has a imx6sl and not a 6sll
8:11 PM
the kobo bootloader managed to spit something out on serial/
Avatar
Avatar
andi
really looking at the SoC reveals that the shine3 has a imx6sl and not a 6sll
that's not identical at all...
Avatar
but did not find the sdcard
Avatar
probably PCB issue
8:12 PM
wrong memory addresses
Avatar
but if pictures are bad you are too lazy to compare
8:12 PM
yes
8:12 PM
PCB seems same
8:12 PM
same markings
8:13 PM
too lazy compare exactly
Avatar
Avatar
Szybet
obo:~# for name in /sys/class/regulator/regulator.* ; do echo `cat $name/name` `cat $n ame/microvolts` `cat $name/state` ; done cat: /sys/class/regulator/regulator.0/microvolts: No such file or directory cat: /sys/class/regulator/regulator.0/state: No such file or directory regulator-dummy vdd3p0 3200000 enabled RICOH619_DC5 1800000 enabled RICOH619_LDO1 900000 disabled RICOH619_LDO2 900000 enabled RICOH619_LDO3 900000 disabled RICOH619_LDO4 900000 disabled RICOH619_LDO5 600000 enabled RICOH619_LDO6 600000 enabled RICOH619_LDO7 900000 enabled RICOH619_LDO8 1800000 enabled RICOH619_LDO9 900000 disabled cpu 1250000 enabled RICOH619_LDO10 900000 disabled RICOH619_LDORTC1 1700000 enabled RICOH619_LDORTC2 900000 disabled cat: /sys/class/regulator/regulator.23/microvolts: No such file or directory DISPLAY_SY7636 disabled cat: /sys/class/regulator/regulator.24/microvolts: No such file or directory VCOM_SY7636 disabled cat: /sys/class/regulator/regulator.25/microvolts: No such file or directory V3P3_SY7636 disabled cat: /sys/class/regulator/regulator.26/state: No such file or directory TMST_SY7636 0 vddsoc 1250000 enabled cat: /sys/class/regulator/regulator.4/state: No such file or directory vref-3v3 3300000 cat: /sys/class/regulator/regulator.5/state: No such file or directory SD1_SPWR 3000000 RICOH619_DC1 1400000 enabled RICOH619_DC2 600000 enabled RICOH619_DC3 600000 enabled RICOH619_DC4 1200000 enabled kobo:~#
yes, these voltages in the nia look quite different
Avatar
about the battery connectors in the nia and elsewhere: do you know where to order them or part numbers? The reason I am asking: I would like to do things like current measurement (especially during suspend, e.g. without the need so acces /sys/class/power_supply/*battery/current_now) with a stable setup without testing the protection circuit of the battery every day (edited)
Avatar
just solder cables or ask on reddit
1:57 PM
on the nia i dont think it works kobo:/sys/class/power_supply# cat /sys/class/power_supply/*/current_now 845 kobo:/sys/class/power_supply# its always 845, even if i turn wifi on
Avatar
Every device running my kernel has shown sane values so far
Avatar
well it also shows, just doesnt change
Avatar
because the driver there is a mess
Avatar
¯\_(ツ)_/¯
1:59 PM
as everything
1:59 PM
maybe disconnect the battery / supply power over usb?
1:59 PM
as what niluje talked, it should work
Avatar
yes, it works
2:03 PM
but for example that messy code turns off the fuel gauge in some situations, I would like to understand the effects, especially on power consumption, and there I have no other chance.
2:04 PM
if those connectors are not found, probably the easiest is to hack the libra
2:04 PM
as the battery has no connectors there anyways
2:07 PM
well, after adding some more kapton tape around the solderig points...
Avatar
well maybe just use the connector from the battery
2:49 PM
cut the wires
2:49 PM
if you really want
Avatar
I've been doing power draw measurements with a cheap USB meter (because my devices are closed), and it's accurate enough to at least confirm that sunxi is terrible at PM ;o)
11:33 PM
Because, yeah, the sysfs stuff reports wonky shit on NTX kernels, can confirm 😉
11:35 PM
It's... less helpful on devices that refuse to enter suspend while connected to a power source, though ;o) (Mk < 6, IIRC?)
Avatar
yes, and I want to be able to close my devices also, so I would rather use that plug solution. But for my Libra I would insert something permanently because I do not need to close it because of broken display. Power from battery or from usb is a different situation, so you will have limitied results. Interesting would be the analysis of this: https://github.com/jwrdegoede/rtl8189ES_linux/issues/82 but hopefully the better values of near-mainline kernels will already help here
The sdio card is not properly unpowered when device is down. Expectation would be that regulator is powered down when iface isis down. Removing the module helps. pmos-shine3:/sys/bus/platform/devic...
Avatar
Re: that issue; there's an sdio_wifi_power kernel module on most NTX boards that does just that
11:37 PM
It's... fairly hilarious actually, because it's just
11:38 PM
#include <linux/module.h> #include <linux/init.h> #include <linux/slab.h> extern void ntx_wifi_power_ctrl (int isWifiEnable); static int __init sdio_wifi_pwr_init(void) { ntx_wifi_power_ctrl(1); return 0; } module_init(sdio_wifi_pwr_init); static void __exit sdio_wifi_pwr_exit(void) { ntx_wifi_power_ctrl(0); } module_exit(sdio_wifi_pwr_exit); MODULE_DESCRIPTION("sdio wifi power control driver"); MODULE_AUTHOR("Netronix"); MODULE_LICENSE("GPL");
11:38 PM
That happens to be an ntx_io ioctl (edited)
11:38 PM
Someone finally realized that it was dumb as hell, and they stopped shipping that and started actually using the ioctl 😄
Avatar
is this a way to shut off the wifi chip completly?
Avatar
An ebook reader application supporting PDF, DjVu, EPUB, FB2 and many more formats, running on Cervantes, Kindle, Kobo, PocketBook and Android devices - koreader/disable-wifi.sh at 615072c7771ca801b...
Avatar
sooo yes?
Avatar
#define CM_WIFI_CTRL 208
11:40 PM
(ntx_io)
Avatar
i speak english, not c unfortunately
Avatar
Also #define CM_BLUETOOTH_PWR 126 because same chip
Avatar
i assume it as a yes
Avatar
Avatar
NiLuJe
Also #define CM_BLUETOOTH_PWR 126 because same chip
same chip has bluetooth?...
Avatar
IIRC, Cervantes had some comment in their HAL about it on some of their boards, where they purposefully chose to NOT power it off because they didn't like the latency trade-off
11:43 PM
That was paired with the usual "we sleep here because ntx told us to" comment around module loading/unloading that anyone that's ever dealt with wifi on ntx should be familiar with 😉 (edited)
Avatar
Avatar
Szybet
i speak english, not c unfortunately
ioctl on /dev/ntx_io
Avatar
Avatar
tux-linux
ioctl on /dev/ntx_io
yea and
Avatar
to explain what you seemed not to understand
Avatar
Avatar
Szybet
is this a way to shut off the wifi chip completly?
???
Avatar
well, probably, according to KOReader
Avatar
are we implementing it?
12:04 AM
it works now
12:04 AM
so
12:04 AM
fine
12:04 AM
i just need to fix the Glo HD
12:04 AM
but that's probably unrelated
Avatar
Avatar
tux-linux
it works now
"battery problems on the nia"
12:05 AM
did you heard that?
Avatar
oh, didn't see
12:05 AM
well try it
Avatar
Avatar
tux-linux
well try it
Turning off the interface using ioctl on the nia and other devices: in toggle.sh and ipd
12:22 AM
there is already too much to do...
Avatar
Avatar
NiLuJe
Re: that issue; there's an sdio_wifi_power kernel module on most NTX boards that does just that
well, that all is silly, userspace should have one way for all devices. That is rfkill block wifi
8:30 AM
and a good kernel should hide most platform-specific stuff
8:31 AM
if you accept removing modules as a solution, rmmod 8189fs
Avatar
kobo good kernel those things dont combine
Avatar
does the thing on mainline
Avatar
so removing modules actually shuts the chip off? no need for this ioctl?
Avatar
that is why I am trying to mainline things as much as possible
8:31 AM
on mainline kernels, yes
8:32 AM
the ioctl is simply not there
8:32 AM
on ntx kernels, you can rmmod sdio_wifi_power
Avatar
oh okay
8:33 AM
goos that we already do that
8:33 AM
so why koreader has this?
Avatar
perhaps some older ntx kernels need that
Avatar
no idea, as said I prefer using newer stuff
Avatar
@tux-linux maybe not thr nia, but older devices need that?
Avatar
root@akepd:/sys/bus/sdio/drivers/rtl8189fs# ls -l total 0 --w------- 1 root root 4096 Aug 31 08:35 bind lrwxrwxrwx 1 root root 0 Aug 31 08:35 mmc1:0001:1 -> ../../../../devices/platform/soc/2100000.bus/2198000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1 --w------- 1 root root 4096 Aug 31 08:34 uevent --w------- 1 root root 4096 Aug 31 08:35 unbind root@akepd:/sys/bus/sdio/drivers/rtl8189fs# echo mmc1:0001:1 >unbind root@akepd:/sys/bus/sdio/drivers/rtl8189fs# echo mmc1:0001:1 >bind root@akepd:/sys/bus/sdio/drivers/rtl8189fs# root@akepd:/sys/bus/sdio/drivers/rtl8189fs#
8:36 AM
that also works on mainline
Avatar
it doesnt crash? cool
8:36 AM
is it maybe possible to turn off voltage regulators for maximum power efficency?
Avatar
the regulator for the wifi is turned off
8:37 AM
in that case
Avatar
the rest
8:37 AM
they are many
Avatar
that is to be researched, and regulators have to be tied to the devices using them
Avatar
too complicated why arm isint using chipsets that handle that?
Avatar
also complicated
8:39 AM
giving a schematic
8:39 AM
and then we know what the regulators are doing
8:40 AM
what they are for
Avatar
and I can properly add that information to the devicetree
Avatar
&usdhc3 { pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep"; pinctrl-0 = <&pinctrl_usdhc3>; pinctrl-1 = <&pinctrl_usdhc3_100mhz>; pinctrl-2 = <&pinctrl_usdhc3_200mhz>; pinctrl-3 = <&pinctrl_usdhc3_sleep>; vmmc-supply = <&reg_wifi>; mmc-pwrseq = <&wifi_pwrseq>; cap-power-off-card; non-removable; status = "okay"; Here i am specifying the power supply for the wifi card. Then the host controller driver will turn off regulator when the card is not used. If no driver for the card is loaded, it is considered not used. A well behaved driver (!= rtl8189fs out-of-mainline-tree driver) will also tell when the card is not used, so the host controller will know what to do
9:03 AM
so here are the information which are in that sdio_wifi_power module or some other dirty ntx stuff on many ntx kernels
Avatar
what's up with tp36?
12:09 AM
secondary serial port?
Avatar
you mean?
Avatar
that group of 4 pads next to the console
Avatar
never tested really
Avatar
TP3-TP6: They are connected with the cable to the touchscreen, so probably some i2c around there
12:15 AM
can be detected by running i2cdetect on the corresponding bus
12:16 AM
and just looking at them with a multimeter
12:16 AM
i2cdetect in a loop
Avatar
On the clara there is another i2c bus which is more difficult to access on pullups (without zeros on it) near the lm3630a, the situation might be the same on the nia. Hot candidates are R139, R143, TP26/25, less hot R146, TP84
1:01 AM
but turn off the backlight during any experiments here
1:01 AM
or measurements
1:01 AM
since the backlight has a comparatively high voltage
1:03 AM
lm3630a = U11
Avatar
TP182-TP285: UART with HW-handshake hof non-soldered BT chip?
Avatar
TP36 really begs for attaching something to it
2:16 PM
using some spring contacts, so without soldering so things keep modular
2:18 PM
lots of distance to any other victim
2:19 PM
so just some backcover with holes in that place is needed
2:20 PM
My guess would be that UART4 is there
Avatar
how to find out: 1. check whether there are signs that pins are used by something else
2:32 PM
can be checked via devicetree
2:32 PM
then check that they are configured as gpio
2:33 PM
and then play around with enabling pullup/-down ressistors
2:33 PM
via pad configuration in the SoC
2:33 PM
and check if a) gpio input moves, b) voltage on the pins is affected
2:34 PM
that in coarse
Avatar
could be done
Avatar
so uart4 would be gpio64/65 (LCD_ENABLE/LCD_CLK)
3:02 PM
in devicetree if used as gpio: &gpio3 0 &gpio3 1
3:02 PM
no signs of that
Avatar
uart2 is &gpio4 6/7, aka gpio102/103 aka NAND_DATA0[45]
Avatar
do you have the devicetree?
11:11 PM
of it
11:11 PM
extracted?
11:11 PM
its in the kernel source?
Avatar
no, hidden space
11:11 PM
before 1. partition
11:12 PM
extract-kobohidden clara-bkup.img 1286 out.dtb
Avatar
Kobo nia ereader with audio added. Contribute to Szybet/niAudio development by creating an account on GitHub.
Avatar
extracts firmware from hidden partitions on Kobo/Tolino ebook readers - GitHub - akemnade/kobo-firmware-extractor: extracts firmware from hidden partitions on Kobo/Tolino ebook readers
Avatar
oh, cool
11:18 PM
well if you dont want to wait, there is the nia image for inkbox
11:18 PM
i can tommorow / in the weekend extract it
Avatar
if it contains your dtb, then I can extract it
Avatar
Yes it's Szybet's unpartitioned space
11:19 PM
I don't have a Nia
Avatar
reason: Kuratius' Nia has U67 soldered and that makes me extremely excited
Avatar
the qfn thing which is not soldered on your board
Avatar
What does it do
11:20 PM
D:
11:21 PM
11:21 PM
which chip is it
Avatar
and its not soldered to his too?
Avatar
it is soldered
Avatar
Avatar
andi
Click to see attachment 🖼️
i dont see a chip in this red square???
Avatar
it is an excerpt from your image
Avatar
Avatar
Szybet
Click to see attachment 🖼️
but thats kuratios image
Avatar
or just an optic illusion
Avatar
what???...
Avatar
so, no not soldered there too
11:31 PM
the pcb looks darker
11:32 PM
and so I got the impression that the chip might be there
11:32 PM
would be too nice
Avatar
What does it do
Avatar
in the device tree is something about bluetooth
Avatar
has anyone ever compiled a kernel on this device? (edited)
Avatar
on the nia, not for the nia?
6:14 PM
on the nia
6:14 PM
no
6:14 PM
sounds as a horrible idea
Avatar
I sometimes to such things for stability tests
6:17 PM
/*
  • on i.MX6ULL, no seperated VDD_ARM_IN and VDD_SOC_IN,
  • to align with other platform and use the same cpufreq
  • driver, still use the seperated OPP define for arm
  • and soc.
/ operating-points = < / kHz uV */ 900000 1250000 792000 1200000 528000 1175000 396000 1175000 198000 1175000 >;
6:17 PM
I found that comment and that makes no sense
Avatar
yes, there are no separate inputs but there are two separate internal regulators, so you have separate voltages
6:30 PM
and the datasheet says for 900Mhz, typ. 1.275 V and not 1.250V, so again dear NTX what are you doing here?!
Avatar
Avatar
andi
I sometimes to such things for stability tests
shouldnt a compiler / crosscompiler always give the same results, without looking what cpu its running on?
Avatar
yes, it should but it is often a good stability test
6:36 PM
there are several reports where some "internal gcc errors" were caused by hw stability issues
6:36 PM
I have also seen random error messages
Avatar
stability as in hardware / software load test?
Avatar
oh, okay
6:36 PM
well those are ereaders, not regular pc
6:37 PM
its not designed with this in mind
6:37 PM
maybe even, depending on time something could burn off
6:37 PM
so i have concerns
Avatar
well, maybe I am a bit more aggressive here, but you could also have some unintentional load test by opening a too big book, or some web page hogging the cpu when using the internal browser, so I would expect that a device would sustain that.
Avatar
my point is time
6:56 PM
no one tested if an ereader can sustain 30h of full load on everything
6:57 PM
maybe temperature of one of the components is slowly going up
Avatar
well, I do not urge you to try that thing, and I would not do in the hot sun
Avatar
i had this problem on an asus tablet, luckly it was the cpu so it just shutted down
Avatar
Avatar
Szybet
maybe even, depending on time something could burn off
No
7:33 PM
My Kobo hardware has sustained heavy loads more times than it would ever have wanted to and it's still working
Avatar
for how many h
Avatar
Days?
7:40 PM
It can throttle itself if needed
7:40 PM
Didn't catch on fire
Avatar
Avatar
tux-linux
It can throttle itself if needed
cpu, yes, other components, not really
Avatar
I remember poeple building a lot of stuff on-device back in the Kindle Touch days, too, FWIW (edited)
Avatar
Avatar
andi
yes, these voltages in the nia look quite different
well the regulator driver takes the voltages from a cache, which is never initialized if regulator is probed via devicetree (which is the case with the nia), so we are seeing the lowest end of the possible voltage range. The cache is in that case only set if the voltage is explicitely set by the kernel and not kept at boot state.
8:31 AM
Nasty surprises with ntx kernels everywhere... I hate that (edited)
Avatar
extract-kobohidden nia2-bkup.img 1286 nia2-factory.dtb
tux-linux changed the channel name: Kobo Nia model A (N306A) 7/13/2023 9:47 PM
Exported 5,133 message(s)
Timezone: UTC+1